| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
from odoo import fields, models |
| 5 |
|
| 6 |
|
| 7 |
class ResBank(models.Model): |
| 8 |
_inherit = "res.bank" |
| 9 |
|
| 10 |
def _get_fiscal_country_codes(self): |
| 11 |
return ','.join(self.env.companies.mapped('account_fiscal_country_id.code')) |
| 12 |
|
| 13 |
l10n_mx_edi_code = fields.Char( |
| 14 |
"ABM Code", |
| 15 |
help="Three-digit number assigned by the ABM to identify banking " |
| 16 |
"institutions (ABM is an acronym for Asociación de Bancos de México)") |
| 17 |
fiscal_country_codes = fields.Char(store=False, default=_get_fiscal_country_codes) |
| 18 |
|
| 19 |
|
| 20 |
class ResPartnerBank(models.Model): |
| 21 |
_inherit = "res.partner.bank" |
| 22 |
|
| 23 |
def _get_fiscal_country_codes(self): |
| 24 |
return ','.join(self.env.companies.mapped('account_fiscal_country_id.code')) |
| 25 |
|
| 26 |
l10n_mx_edi_clabe = fields.Char( |
| 27 |
"CLABE", help="Standardized banking cipher for Mexico. More info " |
| 28 |
"wikipedia.org/wiki/CLABE") |
| 29 |
fiscal_country_codes = fields.Char(store=False, default=_get_fiscal_country_codes) |