Odoo18-Base/addons/l10n_ga/models/template_ga_syscebnl.py
2025-01-06 10:57:38 +07:00

31 lines
1.0 KiB
Python

from odoo import models, _
from odoo.addons.account.models.chart_template import template
class AccountChartTemplate(models.AbstractModel):
_inherit = 'account.chart.template'
@template('ga_syscebnl')
def _get_ga_syscebnl_template_data(self):
return {
'name': _('SYSCEBNL for Associations'),
'parent': 'syscebnl',
'code_digits': '6',
}
@template('ga_syscebnl', 'res.company')
def _get_ga_syscebnl_res_company(self):
company_values = super()._get_syscebnl_res_company()
company_values[self.env.company.id].update(
{
'account_fiscal_country_id': 'base.ga',
'account_sale_tax_id': 'syscebnl_tva_sale_19',
'account_purchase_tax_id': 'syscebnl_tva_purchase_19',
}
)
return company_values
@template('ga_syscebnl', 'account.account')
def _get_ga_syscebnl_account_account(self):
return self._parse_csv('ga_syscebnl', 'account.account', module='l10n_syscohada')