12 lines
507 B
Python
12 lines
507 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import models
|
|
from odoo.addons.account_batch_payment.models.sepa_mapping import sanitize_communication
|
|
|
|
|
|
def init_initiating_party_names(env):
|
|
""" Sets the company name as the default value for the initiating
|
|
party name on all existing companies once the module is installed. """
|
|
for company in env['res.company'].search([]):
|
|
company.iso20022_initiating_party_name = sanitize_communication(company.name)
|