17 lines
525 B
Python
17 lines
525 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
class PaymentMethod(models.Model):
|
|
_inherit = 'payment.method'
|
|
|
|
def _get_fiscal_country_codes(self):
|
|
return ','.join(self.env.companies.mapped('account_fiscal_country_id.code'))
|
|
|
|
l10n_ec_sri_payment_id = fields.Many2one(
|
|
comodel_name="l10n_ec.sri.payment",
|
|
string="SRI Payment Method",
|
|
)
|
|
|
|
fiscal_country_codes = fields.Char(store=False, default=_get_fiscal_country_codes)
|