Restore shared Dominican tax classification

This commit is contained in:
José Arturo García
2026-08-10 23:04:26 -04:00
parent f3d942a6e4
commit 03d30589cb
5 changed files with 184 additions and 3 deletions
+8 -2
View File
@@ -229,6 +229,7 @@ class AccountDoTestCase(ModuleTestCase):
('company', '=', company.id),
('description', '=', 'ITBIS 18% Ventas'),
('rate', '=', Decimal('0.18')),
('tax_kind', '=', 'itbis'),
], limit=1))
self.assertTrue(TaxCode.search([
('company', '=', company.id),
@@ -362,12 +363,14 @@ class AccountDoTestCase(ModuleTestCase):
('company', '=', company.id),
('description', '=', 'ITBIS 18% Sales'),
('rate', '=', Decimal('0.18')),
('tax_kind', '=', 'itbis'),
], limit=1))
self.assertTrue(Tax.search([
('company', '=', company.id),
('description', '=',
'ITBIS Withholding Large Taxpayer 30%'),
('rate', '=', Decimal('-0.054')),
('tax_kind', '=', 'itbis_withholding'),
], limit=1))
self.assertTrue(Tax.search([
('company', '=', company.id),
@@ -565,7 +568,7 @@ class AccountDoUnitTestCase(unittest.TestCase):
if line.strip()
]
self.assertEqual(config.get('tryton', 'version'), '8.0.2')
self.assertEqual(config.get('tryton', 'version'), '8.0.3')
self.assertEqual(
set(lines('tryton', 'depends')),
{'account', 'ir'})
@@ -581,11 +584,14 @@ class AccountDoUnitTestCase(unittest.TestCase):
'tax_code_do_es_419.xml',
'tax_rule_do_es_419.xml',
])
self.assertEqual(lines('register', 'model'), ['ir.ModelData'])
self.assertEqual(
lines('register', 'model'),
['ir.ModelData', 'tax.TaxTemplate', 'tax.Tax'])
self.assertEqual(lines('register', 'wizard'), ['account.CreateChart'])
for filename in lines('tryton', 'xml'):
self.assertTrue((MODULE_DIR / filename).is_file())
self.assertTrue((MODULE_DIR / 'account.py').is_file())
self.assertTrue((MODULE_DIR / 'tax.py').is_file())
pyproject = (MODULE_DIR / 'pyproject.toml').read_text(encoding='utf-8')
self.assertIn("name = 'trytond_account_do'", pyproject)
self.assertIn(