1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/account_avatax/models/account_chart_template.py
2024-12-10 09:04:09 +07:00

18 lines
563 B
Python

from odoo import models
from odoo.addons.account.models.chart_template import template
class AccountChartTemplate(models.AbstractModel):
_inherit = 'account.chart.template'
@template('generic_coa', 'account.fiscal.position')
def _get_us_avatax_fiscal_position(self):
return {
'account_fiscal_position_avatax_us': {
'name': 'Automatic Tax Mapping (AvaTax)',
'is_avatax': True,
'auto_apply': False,
'country_id': self.env.ref('base.us').id,
},
}