13 lines
497 B
Python
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) |