1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/account_sepa/__init__.py
2024-12-10 09:04:09 +07:00

13 lines
527 B
Python

# -*- coding: utf-8 -*-
# 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.sepa_initiating_party_name = sanitize_communication(company.name)