| 1 | from odoo import models |
| 2 | from odoo.addons.account.models.chart_template import template |
| 3 | |
| 4 | |
| 5 | class AccountChartTemplate(models.AbstractModel): |
| 6 | _inherit = "account.chart.template" |
| 7 | |
| 8 | @template("tr", "account.tax") |
| 9 | def _get_tr_withholding_account_tax(self): |
| 10 | additional = self._parse_csv("tr", "account.tax", module="l10n_tr_nilvera_einvoice_extended") |
| 11 | self._deref_account_tags("tr", additional) |
| 12 | return additional |
| 13 | |
| 14 | @template("tr", "l10n_tr_nilvera_einvoice_extended.account.tax.code") |
| 15 | def _get_tr_withholding_account_tax_code(self): |
| 16 | return self._parse_csv("tr", "l10n_tr_nilvera_einvoice_extended.account.tax.code", module="l10n_tr_nilvera_einvoice_extended") |