diff --git a/modules/account_be/CHANGELOG b/modules/account_be/CHANGELOG
index 5536dbdeec..a59e94af08 100644
--- a/modules/account_be/CHANGELOG
+++ b/modules/account_be/CHANGELOG
@@ -20,94 +20,121 @@ Version 6.6.0 - 2022-10-31
* Bug fixes (see mercurial logs for details)
Version 6.4.0 - 2022-05-02
+--------------------------
* Bug fixes (see mercurial logs for details)
* Add support for Python 3.10
* Remove support for Python 3.6
Version 6.2.0 - 2021-11-01
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 6.0.0 - 2021-05-03
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 5.8.0 - 2020-11-02
+--------------------------
* Bug fixes (see mercurial logs for details)
* Remove support for Python 3.5
Version 5.6.0 - 2020-05-04
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 5.4.0 - 2019-11-04
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 5.2.0 - 2019-05-06
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 5.0.0 - 2018-10-01
+--------------------------
* Bug fixes (see mercurial logs for details)
* Remove support for Python 2.7
Version 4.8.0 - 2018-04-23
+--------------------------
* Bug fixes (see mercurial logs for details)
* Update chart to new tax code definition
Version 4.6.0 - 2017-10-30
+--------------------------
* Bug fixes (see mercurial logs for details)
* Add VAT customer list
* Add support for EC Sales List
Version 4.4.0 - 2017-05-01
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 4.2.0 - 2016-11-28
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 4.0.0 - 2016-05-02
+--------------------------
* Bug fixes (see mercurial logs for details)
* Add Python3 support
Version 3.8.0 - 2015-11-02
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 3.6.0 - 2015-04-20
+--------------------------
* Bug fixes (see mercurial logs for details)
* Add localization infrastructure
* Add support for PyPy
* Synchronize chart of account with the official source
Version 3.4.0 - 2014-10-20
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 3.2.0 - 2014-04-21
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 3.0.0 - 2013-10-21
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 2.8.0 - 2013-04-22
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 2.6.0 - 2012-10-22
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 2.4.0 - 2012-04-23
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 2.2.0 - 2011-10-24
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 2.0.0 - 2011-04-27
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 1.8.0 - 2010-11-01
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 1.6.0 - 2010-05-12
+--------------------------
* Bug fixes (see mercurial logs for details)
* Add new tax codes 44 and 88
Version 1.4.0 - 2009-10-19
+--------------------------
* Bug fixes (see mercurial logs for details)
Version 1.2.0 - 2009-06-22
+--------------------------
* Initial release
diff --git a/modules/account_be/account.py b/modules/account_be/account.py
index 92e07d6bb2..b2744ebd0f 100644
--- a/modules/account_be/account.py
+++ b/modules/account_be/account.py
@@ -33,7 +33,7 @@ class CreateChart(metaclass=PoolMeta):
class BEVATCustomer(ModelSQL, ModelView):
- "Belgium VAT Customer"
+ "Belgian VAT Customer"
__name__ = 'account.be.vat_customer'
company_tax_identifier = fields.Many2One(
@@ -118,7 +118,7 @@ class BEVATCustomer(ModelSQL, ModelView):
class BEVATCustomerContext(ModelView):
- "Belgium VAT Customer Context"
+ "Belgian VAT Customer Context"
__name__ = 'account.be.vat_customer.context'
company = fields.Many2One('company.company', "Company", required=True)
diff --git a/modules/account_be/account.xml b/modules/account_be/account.xml
index 55960c54aa..5c2db94152 100644
--- a/modules/account_be/account.xml
+++ b/modules/account_be/account.xml
@@ -10,7 +10,7 @@ this repository contains the full copyright notices and license terms. -->
- Belgium VAT Customer
+ Belgian VAT Customer
account.be.vat_customer
account.be.vat_customer.context
diff --git a/modules/account_be/doc/design.rst b/modules/account_be/doc/design.rst
new file mode 100644
index 0000000000..61c1849c8f
--- /dev/null
+++ b/modules/account_be/doc/design.rst
@@ -0,0 +1,23 @@
+******
+Design
+******
+
+The *Belgian Account Module* introduces the following concepts:
+
+.. _model-account.be.vat_customer:
+
+Belgian VAT Customer
+====================
+
+The *Belgian VAT Customer* lists the customers of the `Company
+` with a Belgian VAT number, including their
+turnover and VAT amount for a `Fiscal Year `.
+
+.. seealso::
+
+ The Belgian VAT Customer is found by opening the main menu item:
+
+ |Financial --> Reporting --> Belgian VAT Customer|__
+
+ .. |Financial --> Reporting --> Belgian VAT Customer| replace:: :menuselection:`Financial --> Reporting --> Belgian VAT Customer`
+ __ https://demo.tryton.org/model/account.be.vat_customer;content_model=account.be.vat_customer.context
diff --git a/modules/account_be/doc/index.rst b/modules/account_be/doc/index.rst
index 7f0f28581a..adc05ff4bc 100644
--- a/modules/account_be/doc/index.rst
+++ b/modules/account_be/doc/index.rst
@@ -1,14 +1,13 @@
+######################
Belgian Account Module
######################
-The Belgian account module defines the standard chart of account.
+The *Account Belgian Module* defines the standard chart of accounts and reports
+for Belgium.
-The module generates french and dutch chart of accounts / chart of taxes. The
-french / dutch XML files are generated from the same original XML file thanks
-to the localize.xsl XSLT script. The script will produce on the standard output
-the desired XML file. The XSLT script can be launched with the following
-command::
+.. toctree::
+ :maxdepth: 2
- xsltproc --stringparam lang localize.xsl
-
-where ``lang`` is either ``fr`` or ``nl``.
+ design
+ reference
+ releases
diff --git a/modules/account_be/doc/reference.rst b/modules/account_be/doc/reference.rst
new file mode 100644
index 0000000000..88107418fe
--- /dev/null
+++ b/modules/account_be/doc/reference.rst
@@ -0,0 +1,18 @@
+*********************
+Development Reference
+*********************
+
+The *Belgian Account Module* includes the chart of accounts in french and
+dutch.
+The :abbr:`XML (eXtensible Markup Language)` files that contain the localised
+charts of account are all generated from the same source XML file.
+The :file:`localize.xsl` :abbr:`XSLT (XML Stylesheet Language Transform)` file
+defines how the source XML file is transformed into a localised chart of
+accounts.
+
+To output a localised chart of accounts for language ```` (either ``fr``
+or ``nl``) run:
+
+.. code-block:: bash
+
+ xsltproc --stringparam lang localize.xsl account_be.xml
diff --git a/modules/account_be/doc/releases.rst b/modules/account_be/doc/releases.rst
new file mode 100644
index 0000000000..21b13c4745
--- /dev/null
+++ b/modules/account_be/doc/releases.rst
@@ -0,0 +1,7 @@
+.. _releases-index:
+
+=============
+Release notes
+=============
+
+.. include:: ../CHANGELOG
diff --git a/modules/account_be/setup.py b/modules/account_be/setup.py
index 715f21fe18..44e13ad629 100755
--- a/modules/account_be/setup.py
+++ b/modules/account_be/setup.py
@@ -11,9 +11,12 @@ from setuptools import find_packages, setup
def read(fname):
- return io.open(
+ content = io.open(
os.path.join(os.path.dirname(__file__), fname),
'r', encoding='utf-8').read()
+ content = re.sub(
+ r'(?m)^\.\. toctree::\r?\n((^$|^\s.*$)\r?\n)*', '', content)
+ return content
def get_require_version(name):
@@ -57,7 +60,7 @@ setup(name=name,
download_url=download_url,
project_urls={
"Bug Tracker": 'https://bugs.tryton.org/',
- "Documentation": 'https://docs.tryton.org/',
+ "Documentation": 'https://docs.tryton.org/latest/modules-account-be',
"Forum": 'https://www.tryton.org/forum',
"Source Code": 'https://code.tryton.org/tryton',
},
diff --git a/modules/account_be/tryton.cfg b/modules/account_be/tryton.cfg
index 1d66e94015..b1bee53c2c 100644
--- a/modules/account_be/tryton.cfg
+++ b/modules/account_be/tryton.cfg
@@ -3,6 +3,7 @@ version=7.3.0
depends:
account
account_eu
+ company
extras_depend:
account_asset
account_deposit