diff --git a/modules/account_invoice_correction/CHANGELOG b/modules/account_invoice_correction/CHANGELOG index 14cb78c503..30559a2c73 100644 --- a/modules/account_invoice_correction/CHANGELOG +++ b/modules/account_invoice_correction/CHANGELOG @@ -20,39 +20,50 @@ 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) * Add _account_invoice_correction context keyword when copying for correction 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) Version 4.6.0 - 2017-10-30 +-------------------------- * Bug fixes (see mercurial logs for details) Version 4.4.0 - 2017-05-01 +-------------------------- * Initial release diff --git a/modules/account_invoice_correction/doc/design.rst b/modules/account_invoice_correction/doc/design.rst new file mode 100644 index 0000000000..bd0db6f5b3 --- /dev/null +++ b/modules/account_invoice_correction/doc/design.rst @@ -0,0 +1,34 @@ +****** +Design +****** + +The *Account Invoice Correction Module* extends and introduces the following +concepts: + +.. _model-account.invoice: + +Invoice +======= + +When the *Account Invoice Correction Module* is activated, the *Invoice* gets a +:guilabel:`Correct` button to launch the `Correct Invoice +` wizard. + +.. seealso:: + + The `Invoice ` concept is introduced + by the :doc:`Account Invoice Module `. + +Wizards +------- + +.. _wizard-account.invoice.correct: + +Correct Invoice +^^^^^^^^^^^^^^^ + +The *Correct Invoice* wizard creates a new `Invoice +` based on the selected invoice lines. +Each selected line is added twice, once with the original quantity and a second +time with the inverted quantity, so that the user can change the price of the +first line without changing the actual quantity invoiced. diff --git a/modules/account_invoice_correction/doc/index.rst b/modules/account_invoice_correction/doc/index.rst index 59a3e573aa..83ca51cf88 100644 --- a/modules/account_invoice_correction/doc/index.rst +++ b/modules/account_invoice_correction/doc/index.rst @@ -1,7 +1,14 @@ +################################# Account Invoice Correction Module ################################# -The account invoice correction module adds a wizard on invoice which allows -select lines for which the unit price must be corrected. +The *Account Invoice Correction Module* adds a wizard which allows the +correction of unit prices on posted invoice lines. A new invoice is created with those lines in double: once with the original quantity, once with the inverted quantity. + +.. toctree:: + :maxdepth: 2 + + design + releases diff --git a/modules/account_invoice_correction/doc/releases.rst b/modules/account_invoice_correction/doc/releases.rst new file mode 100644 index 0000000000..21b13c4745 --- /dev/null +++ b/modules/account_invoice_correction/doc/releases.rst @@ -0,0 +1,7 @@ +.. _releases-index: + +============= +Release notes +============= + +.. include:: ../CHANGELOG diff --git a/modules/account_invoice_correction/setup.py b/modules/account_invoice_correction/setup.py index 1f0bae39b8..6a25bdb487 100755 --- a/modules/account_invoice_correction/setup.py +++ b/modules/account_invoice_correction/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): @@ -59,7 +62,9 @@ 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-invoice-correction'), "Forum": 'https://www.tryton.org/forum', "Source Code": 'https://code.tryton.org/tryton', },