Odoo18-Base/enterprise-17.0/account_sepa/__init__.py
2025-01-06 10:57:38 +07:00

13 lines
497 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from .models.account_journal 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)