Prepare Dominican accounting localization for core review

This commit is contained in:
José Arturo García
2026-08-10 00:08:55 -04:00
parent 85dc8ec2b3
commit a740366693
40 changed files with 9016 additions and 10473 deletions
+5 -4
View File
@@ -3,6 +3,7 @@ Account DO Scenario
Imports::
>>> from decimal import Decimal
>>> from proteus import Model
>>> from trytond.modules.account.tests.tools import create_chart
>>> from trytond.modules.company.tests.tools import create_company, get_company
@@ -18,7 +19,7 @@ Get the test company::
Create the Dominican chart of accounts::
>>> _ = create_chart(company, chart='account_do.do_account_root')
>>> _ = create_chart(company, chart='account_do.do_account_root_en')
>>> Account = Model.get('account.account')
>>> receivable, = Account.find([
... ('company', '=', company.id),
@@ -40,12 +41,12 @@ Validate fiscal objects::
>>> TaxRule = Model.get('account.tax.rule')
>>> bool(Tax.find([
... ('company', '=', company.id),
... ('description', '=', 'ITBIS 18% Ventas'),
... ('tax_kind', '=', 'itbis')]))
... ('description', '=', 'ITBIS 18% Sales'),
... ('rate', '=', Decimal('0.18'))]))
True
>>> bool(TaxCode.find([
... ('company', '=', company.id),
... ('name', '=', 'Otros Impuestos y Contribuciones')]))
... ('name', '=', 'Other Taxes and Contributions')]))
True
>>> bool(TaxRule.find([
... ('company', '=', company.id),