Align account_do with core localization structure

Add CreateChart defaults for the Dominican receivable and payable accounts, following the pattern used by official Tryton localization modules.

Register the chart wizard extension, add core-style documentation files, and protect the structure with transactional and static tests.
This commit is contained in:
José Arturo García
2026-08-09 13:44:20 -04:00
parent 5595296401
commit 85dc8ec2b3
9 changed files with 122 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
project = 'Account DO'
release = version = '8.0'
author = 'Solutema'
copyright = '2026, Solutema'
default_role = 'ref'
highlight_language = 'none'
extensions = [
'sphinx.ext.intersphinx',
]
intersphinx_mapping = {
'trytond': ('https://docs.tryton.org/projects/server/en/8.0/', None),
'account': (
'https://docs.tryton.org/projects/modules-account/en/8.0/', None),
'company': (
'https://docs.tryton.org/projects/modules-company/en/8.0/', None),
'currency': (
'https://docs.tryton.org/projects/modules-currency/en/8.0/', None),
}
+18
View File
@@ -0,0 +1,18 @@
Design
======
``account_do`` is a base accounting localization module. It follows the same
shape as Tryton chart modules such as ``account_fr``, ``account_be``, and
``account_syscohada``:
* chart, tax, tax code, and tax rule data are declarative XML records;
* Python code extends existing account models only where Dominican metadata or
chart setup defaults are needed;
* the chart creation wizard proposes the Dominican receivable and payable
control accounts when the Dominican chart is selected;
* fiscal report box mapping remains outside this module and is owned by
reporting modules such as ``dgii_reports``.
The module deliberately avoids replacing posting, tax computation, or invoice
logic from Tryton's ``account`` module. Complementary Dominican modules should
consume the accounts, taxes, tax codes, and metadata defined here.
+8
View File
@@ -4,6 +4,14 @@ Account DO
The ``account_do`` module provides Dominican Republic accounting data for
Tryton.
.. toctree::
:maxdepth: 2
design
reference
publishing
releases
It includes:
* An IFRS-oriented chart of accounts for Dominican companies;
+27
View File
@@ -0,0 +1,27 @@
Reference
=========
Chart Setup
-----------
When the Dominican chart ``account_do.do_account_root`` is selected, the chart
creation wizard proposes:
* ``account_do.do_account_110201`` as the default receivable account;
* ``account_do.do_account_210101`` as the default payable account.
Fiscal Metadata
---------------
The module extends ``account.tax.template`` and ``account.tax`` with:
* ``tax_kind``;
* ``tax_fiscal_type``;
* ``tax_application``;
* ``dgii_legal_reference``;
* ``dgii_legal_article``;
* ``dgii_form_hint``;
* ``dgii_fiscal_status``.
These fields classify Dominican taxes without duplicating DGII report box
mapping. Reporting modules should use them together with account and tax codes.
+9
View File
@@ -0,0 +1,9 @@
Releases
========
8.0.0
-----
Initial Tryton 8.0 series release with Dominican chart of accounts, fiscal
accounts, taxes, tax codes, tax rules, legal metadata, translations, and chart
creation defaults.