Expose Dominican tax classification in views

This commit is contained in:
José Arturo García
2026-08-10 23:16:55 -04:00
parent 03d30589cb
commit 3fab54339d
8 changed files with 70 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
Version 8.0.4 - 2026-08-10
--------------------------
* Display the Dominican tax classification on tax and tax-template forms and
lists.
Version 8.0.3 - 2026-08-10
--------------------------
* Restore the shared Dominican tax classification required by invoicing, NCF
+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="tax_view_form">
<field name="model">account.tax</field>
<field name="inherit" ref="account.tax_view_form"/>
<field name="name">tax_form</field>
</record>
<record model="ir.ui.view" id="tax_view_list">
<field name="model">account.tax</field>
<field name="inherit" ref="account.tax_view_list"/>
<field name="name">tax_list</field>
</record>
<record model="ir.ui.view" id="tax_template_view_form">
<field name="model">account.tax.template</field>
<field name="inherit" ref="account.tax_template_view_form"/>
<field name="name">tax_template_form</field>
</record>
<record model="ir.ui.view" id="tax_template_view_list">
<field name="model">account.tax.template</field>
<field name="inherit" ref="account.tax_template_view_list"/>
<field name="name">tax_template_list</field>
</record>
</data>
</tryton>
+2 -1
View File
@@ -568,7 +568,7 @@ class AccountDoUnitTestCase(unittest.TestCase):
if line.strip()
]
self.assertEqual(config.get('tryton', 'version'), '8.0.3')
self.assertEqual(config.get('tryton', 'version'), '8.0.4')
self.assertEqual(
set(lines('tryton', 'depends')),
{'account', 'ir'})
@@ -583,6 +583,7 @@ class AccountDoUnitTestCase(unittest.TestCase):
'tax_do_es_419.xml',
'tax_code_do_es_419.xml',
'tax_rule_do_es_419.xml',
'tax.xml',
])
self.assertEqual(
lines('register', 'model'),
+2 -1
View File
@@ -1,5 +1,5 @@
[tryton]
version=8.0.3
version=8.0.4
depends:
account
ir
@@ -12,6 +12,7 @@ xml:
tax_do_es_419.xml
tax_code_do_es_419.xml
tax_rule_do_es_419.xml
tax.xml
[register]
model:
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//page[@id='general']/field[@name='group']" position="after">
<label name="tax_kind"/>
<field name="tax_kind"/>
</xpath>
</data>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='group']" position="after">
<field name="tax_kind" optional="1"/>
</xpath>
</data>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//page[@id='general']/field[@name='group']" position="after">
<label name="tax_kind"/>
<field name="tax_kind"/>
</xpath>
</data>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='group']" position="after">
<field name="tax_kind" optional="1"/>
</xpath>
</data>