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