account_chart_template.py 414 B

1234567891011121314
  1. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  2. from odoo import models
  3. class AccountChartTemplate(models.Model):
  4. _inherit = 'account.chart.template'
  5. def _get_fp_vals(self, company, position):
  6. res = super()._get_fp_vals(company, position)
  7. if company.country_id.code == 'BR':
  8. res['l10n_br_fp_type'] = position['l10n_br_fp_type']
  9. return res