Odoo18-Base/addons/l10n_cl/models/res_partner_bank.py
2025-01-06 10:57:38 +07:00

14 lines
460 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResBank(models.Model):
_name = 'res.bank'
_inherit = 'res.bank'
def _get_fiscal_country_codes(self):
return ','.join(self.env.companies.mapped('account_fiscal_country_id.code'))
l10n_cl_sbif_code = fields.Char('Cod. SBIF', size=10)
fiscal_country_codes = fields.Char(store=False, default=_get_fiscal_country_codes)