Complete Dominican tax localization metadata
This commit is contained in:
@@ -84,6 +84,15 @@ TAX_APPLICATION = [
|
||||
('asset_transfer', 'Transferencia de activos'),
|
||||
]
|
||||
|
||||
DGII_FISCAL_STATUS = [
|
||||
('', ''),
|
||||
('current', 'Vigente'),
|
||||
('special', 'Especial'),
|
||||
('historical', 'Histórico'),
|
||||
('future', 'Futuro'),
|
||||
('deprecated', 'Derogado'),
|
||||
]
|
||||
|
||||
MODEL_DATA_RENAMES = {
|
||||
'do_tax_group_otros': 'do_tax_group_others',
|
||||
'do_tc_otros': 'do_tc_others',
|
||||
@@ -122,6 +131,11 @@ class TaxTemplate(metaclass=PoolMeta):
|
||||
TAX_FISCAL_TYPE, 'Fiscal Tax Type', sort=False)
|
||||
tax_application = fields.Selection(
|
||||
TAX_APPLICATION, 'Tax Application', sort=False)
|
||||
dgii_legal_reference = fields.Char('DGII Legal Reference')
|
||||
dgii_legal_article = fields.Char('DGII Legal Article')
|
||||
dgii_form_hint = fields.Char('DGII Form Hint')
|
||||
dgii_fiscal_status = fields.Selection(
|
||||
DGII_FISCAL_STATUS, 'DGII Fiscal Status', sort=False)
|
||||
|
||||
@classmethod
|
||||
def __register__(cls, module_name):
|
||||
@@ -137,7 +151,10 @@ class TaxTemplate(metaclass=PoolMeta):
|
||||
|
||||
def _get_tax_value(self, tax=None):
|
||||
values = super()._get_tax_value(tax=tax)
|
||||
for field in ['tax_kind', 'tax_fiscal_type', 'tax_application']:
|
||||
for field in [
|
||||
'tax_kind', 'tax_fiscal_type', 'tax_application',
|
||||
'dgii_legal_reference', 'dgii_legal_article',
|
||||
'dgii_form_hint', 'dgii_fiscal_status']:
|
||||
if not tax or getattr(tax, field) != getattr(self, field):
|
||||
values[field] = getattr(self, field)
|
||||
return values
|
||||
@@ -151,6 +168,11 @@ class Tax(metaclass=PoolMeta):
|
||||
TAX_FISCAL_TYPE, 'Fiscal Tax Type', sort=False)
|
||||
tax_application = fields.Selection(
|
||||
TAX_APPLICATION, 'Tax Application', sort=False)
|
||||
dgii_legal_reference = fields.Char('DGII Legal Reference')
|
||||
dgii_legal_article = fields.Char('DGII Legal Article')
|
||||
dgii_form_hint = fields.Char('DGII Form Hint')
|
||||
dgii_fiscal_status = fields.Selection(
|
||||
DGII_FISCAL_STATUS, 'DGII Fiscal Status', sort=False)
|
||||
|
||||
@classmethod
|
||||
def __register__(cls, module_name):
|
||||
|
||||
Reference in New Issue
Block a user