| 1 |
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 |
from odoo import models |
| 3 |
from odoo.addons.account.models.chart_template import template |
| 4 |
|
| 5 |
|
| 6 |
class AccountChartTemplate(models.AbstractModel): |
| 7 |
_inherit = 'account.chart.template' |
| 8 |
|
| 9 |
@template('mc') |
| 10 |
def _get_mc_template_data(self): |
| 11 |
return { |
| 12 |
'code_digits': '6', |
| 13 |
'parent': 'fr', |
| 14 |
} |
| 15 |
|
| 16 |
def _deref_account_tags(self, template_code, tax_data): |
| 17 |
if template_code == 'mc': |
| 18 |
template_code = 'fr' |
| 19 |
return super()._deref_account_tags(template_code, tax_data) |