mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_move_template: pre-commit stuff
This commit is contained in:
@@ -17,46 +17,50 @@ Account Move Template
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/account-financial-tools/tree/16.0/account_move_template
|
||||
:target: https://github.com/OCA/account-financial-tools/tree/17.0/account_move_template
|
||||
:alt: OCA/account-financial-tools
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_move_template
|
||||
:target: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_move_template
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=16.0
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=17.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
The user can configure journal entries templates, useful for recurring entries.
|
||||
The amount of each template line can be computed (through python code)
|
||||
or kept as user input.
|
||||
The user can configure journal entries templates, useful for recurring
|
||||
entries. The amount of each template line can be computed (through
|
||||
python code) or kept as user input.
|
||||
|
||||
If user input, when using the template, user has to fill
|
||||
the amount of every input lines.
|
||||
If user input, when using the template, user has to fill the amount of
|
||||
every input lines.
|
||||
|
||||
The journal entry form allows lo load, through a wizard,
|
||||
the template to use and the amounts to fill.
|
||||
The journal entry form allows lo load, through a wizard, the template to
|
||||
use and the amounts to fill.
|
||||
|
||||
**Notable features:**
|
||||
|
||||
This module enhance the capability of module account_move_template with following features,
|
||||
This module enhance the capability of module account_move_template with
|
||||
following features,
|
||||
|
||||
#. Optional account for negative amount.
|
||||
1. Optional account for negative amount.
|
||||
|
||||
When the Journal entry is created, and credit/debit is negative value, change debit/credit
|
||||
side and use the opt_account_id
|
||||
When the Journal entry is created, and credit/debit is negative
|
||||
value, change debit/credit side and use the opt_account_id
|
||||
|
||||
#. Allow overwrite move line values with overwrite dict.
|
||||
2. Allow overwrite move line values with overwrite dict.
|
||||
|
||||
Normally, the journal items created by the template will require user input on wizard.
|
||||
This feature allow passing the overwrite values with a dictionary.
|
||||
This is particularly useful when the wizard is called by code.
|
||||
Normally, the journal items created by the template will require
|
||||
user input on wizard. This feature allow passing the overwrite
|
||||
values with a dictionary. This is particularly useful when the
|
||||
wizard is called by code.
|
||||
|
||||
Sample of dictionary to overwrite move lines::
|
||||
Sample of dictionary to overwrite move lines:
|
||||
|
||||
{'L1': {'partner_id': 1, 'amount': 100, 'name': 'some label'},
|
||||
'L2': {'partner_id': 2, 'amount': 200, 'name': 'some label 2'}, }
|
||||
::
|
||||
|
||||
{'L1': {'partner_id': 1, 'amount': 100, 'name': 'some label'},
|
||||
'L2': {'partner_id': 2, 'amount': 200, 'name': 'some label 2'}, }
|
||||
|
||||
**Table of contents**
|
||||
|
||||
@@ -68,17 +72,19 @@ Usage
|
||||
|
||||
To create new templates:
|
||||
|
||||
#. Make sure that you have flagged *Show Full Accounting Features* on your
|
||||
user, and that the user belongs to the *Billing Manager* group.
|
||||
#. Go to *Invoicing / Configuration / Accounting / Journal Entry Templates* and
|
||||
define there your templates. You can choose to complete a line using a
|
||||
defined formula, based on other lines, or by requiring user input.
|
||||
1. Make sure that you have flagged *Show Full Accounting Features* on
|
||||
your user, and that the user belongs to the *Billing Manager* group.
|
||||
2. Go to *Invoicing / Configuration / Accounting / Journal Entry
|
||||
Templates* and define there your templates. You can choose to
|
||||
complete a line using a defined formula, based on other lines, or by
|
||||
requiring user input.
|
||||
|
||||
To use an existing template:
|
||||
|
||||
#. Go to *Invoicing / Accounting / Actions / Create Entry from Template*
|
||||
#. Select one of the available templates.
|
||||
#. Complete the entries according to the template and click on the button *Generate Journal Entry*.
|
||||
1. Go to *Invoicing / Accounting / Actions / Create Entry from Template*
|
||||
2. Select one of the available templates.
|
||||
3. Complete the entries according to the template and click on the
|
||||
button *Generate Journal Entry*.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
@@ -86,7 +92,7 @@ Bug Tracker
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_move_template%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_move_template%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
@@ -94,7 +100,7 @@ Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
-------
|
||||
|
||||
* Agile Business Group
|
||||
* Aurium Technologies
|
||||
@@ -103,38 +109,40 @@ Authors
|
||||
* Akretion
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
------------
|
||||
|
||||
Module Authors
|
||||
--------------
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
* Davide Corio <davide.corio@agilebg.com>
|
||||
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
|
||||
* Paolo Chiara <p.chiara@isa.it>
|
||||
* Franco Tampieri <franco.tampieri@agilebg.com>
|
||||
* Alexis de Lattre <alexis.delattre@akretion.com> (full re-write for v12)
|
||||
- Davide Corio <davide.corio@agilebg.com>
|
||||
- Lorenzo Battistini <lorenzo.battistini@agilebg.com>
|
||||
- Paolo Chiara <p.chiara@isa.it>
|
||||
- Franco Tampieri <franco.tampieri@agilebg.com>
|
||||
- Alexis de Lattre <alexis.delattre@akretion.com> (full re-write for
|
||||
v12)
|
||||
|
||||
Module Contributors
|
||||
-------------------
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Jalal ZAHID <j.zahid@auriumtechnologies.com> (port to v10)
|
||||
* Alex Comba <alex.comba@agilebg.com> (Port to V8)
|
||||
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
||||
* Raf Ven <raf.ven@dynapps.be> (port to v11)
|
||||
* Jordi Ballester <jordi.ballester@forgeflow.com> (ForgeFlow)
|
||||
* `Sygel <https://www.sygel.es>`_:
|
||||
- Jalal ZAHID <j.zahid@auriumtechnologies.com> (port to v10)
|
||||
- Alex Comba <alex.comba@agilebg.com> (Port to V8)
|
||||
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
||||
- Raf Ven <raf.ven@dynapps.be> (port to v11)
|
||||
- Jordi Ballester <jordi.ballester@forgeflow.com> (ForgeFlow)
|
||||
- `Sygel <https://www.sygel.es>`__:
|
||||
|
||||
* Harald Panten <harald.panten@sygel.es>
|
||||
* Valentin Vinagre <valentin.vinagre@sygel.es>
|
||||
* Manuel Regidor <manuel.regidor@sygel.es>
|
||||
- Harald Panten <harald.panten@sygel.es>
|
||||
- Valentin Vinagre <valentin.vinagre@sygel.es>
|
||||
- Manuel Regidor <manuel.regidor@sygel.es>
|
||||
|
||||
* `Ecosoft <http://ecosoft.co.th>`_:
|
||||
- `Ecosoft <http://ecosoft.co.th>`__:
|
||||
|
||||
* Kitti U. <kittiu@ecosoft.co.th> (Add context overwrite)
|
||||
* Abraham Anes <abrahamanes@gmail.com>
|
||||
- Kitti U. <kittiu@ecosoft.co.th> (Add context overwrite)
|
||||
|
||||
- Abraham Anes <abrahamanes@gmail.com>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
-----------
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
@@ -146,6 +154,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/16.0/account_move_template>`_ project on GitHub.
|
||||
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/17.0/account_move_template>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
3
account_move_template/pyproject.toml
Normal file
3
account_move_template/pyproject.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["whool"]
|
||||
build-backend = "whool.buildapi"
|
||||
23
account_move_template/readme/CONTRIBUTORS.md
Normal file
23
account_move_template/readme/CONTRIBUTORS.md
Normal file
@@ -0,0 +1,23 @@
|
||||
## Module Authors
|
||||
|
||||
- Davide Corio \<<davide.corio@agilebg.com>\>
|
||||
- Lorenzo Battistini \<<lorenzo.battistini@agilebg.com>\>
|
||||
- Paolo Chiara \<<p.chiara@isa.it>\>
|
||||
- Franco Tampieri \<<franco.tampieri@agilebg.com>\>
|
||||
- Alexis de Lattre \<<alexis.delattre@akretion.com>\> (full re-write for
|
||||
v12)
|
||||
|
||||
## Module Contributors
|
||||
|
||||
- Jalal ZAHID \<<j.zahid@auriumtechnologies.com>\> (port to v10)
|
||||
- Alex Comba \<<alex.comba@agilebg.com>\> (Port to V8)
|
||||
- Guewen Baconnier \<<guewen.baconnier@camptocamp.com>\>
|
||||
- Raf Ven \<<raf.ven@dynapps.be>\> (port to v11)
|
||||
- Jordi Ballester \<<jordi.ballester@forgeflow.com>\> (ForgeFlow)
|
||||
- [Sygel](https://www.sygel.es):
|
||||
- Harald Panten \<<harald.panten@sygel.es>\>
|
||||
- Valentin Vinagre \<<valentin.vinagre@sygel.es>\>
|
||||
- Manuel Regidor \<<manuel.regidor@sygel.es>\>
|
||||
- [Ecosoft](http://ecosoft.co.th):
|
||||
- Kitti U. \<<kittiu@ecosoft.co.th>\> (Add context overwrite)
|
||||
- Abraham Anes \<<abrahamanes@gmail.com>\>
|
||||
@@ -1,27 +0,0 @@
|
||||
Module Authors
|
||||
--------------
|
||||
|
||||
* Davide Corio <davide.corio@agilebg.com>
|
||||
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
|
||||
* Paolo Chiara <p.chiara@isa.it>
|
||||
* Franco Tampieri <franco.tampieri@agilebg.com>
|
||||
* Alexis de Lattre <alexis.delattre@akretion.com> (full re-write for v12)
|
||||
|
||||
Module Contributors
|
||||
-------------------
|
||||
|
||||
* Jalal ZAHID <j.zahid@auriumtechnologies.com> (port to v10)
|
||||
* Alex Comba <alex.comba@agilebg.com> (Port to V8)
|
||||
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
||||
* Raf Ven <raf.ven@dynapps.be> (port to v11)
|
||||
* Jordi Ballester <jordi.ballester@forgeflow.com> (ForgeFlow)
|
||||
* `Sygel <https://www.sygel.es>`_:
|
||||
|
||||
* Harald Panten <harald.panten@sygel.es>
|
||||
* Valentin Vinagre <valentin.vinagre@sygel.es>
|
||||
* Manuel Regidor <manuel.regidor@sygel.es>
|
||||
|
||||
* `Ecosoft <http://ecosoft.co.th>`_:
|
||||
|
||||
* Kitti U. <kittiu@ecosoft.co.th> (Add context overwrite)
|
||||
* Abraham Anes <abrahamanes@gmail.com>
|
||||
31
account_move_template/readme/DESCRIPTION.md
Normal file
31
account_move_template/readme/DESCRIPTION.md
Normal file
@@ -0,0 +1,31 @@
|
||||
The user can configure journal entries templates, useful for recurring
|
||||
entries. The amount of each template line can be computed (through
|
||||
python code) or kept as user input.
|
||||
|
||||
If user input, when using the template, user has to fill the amount of
|
||||
every input lines.
|
||||
|
||||
The journal entry form allows lo load, through a wizard, the template to
|
||||
use and the amounts to fill.
|
||||
|
||||
**Notable features:**
|
||||
|
||||
This module enhance the capability of module account_move_template with
|
||||
following features,
|
||||
|
||||
1. Optional account for negative amount.
|
||||
|
||||
> When the Journal entry is created, and credit/debit is negative
|
||||
> value, change debit/credit side and use the opt_account_id
|
||||
|
||||
2. Allow overwrite move line values with overwrite dict.
|
||||
|
||||
> Normally, the journal items created by the template will require
|
||||
> user input on wizard. This feature allow passing the overwrite
|
||||
> values with a dictionary. This is particularly useful when the
|
||||
> wizard is called by code.
|
||||
>
|
||||
> Sample of dictionary to overwrite move lines:
|
||||
>
|
||||
> {'L1': {'partner_id': 1, 'amount': 100, 'name': 'some label'},
|
||||
> 'L2': {'partner_id': 2, 'amount': 200, 'name': 'some label 2'}, }
|
||||
@@ -1,29 +0,0 @@
|
||||
The user can configure journal entries templates, useful for recurring entries.
|
||||
The amount of each template line can be computed (through python code)
|
||||
or kept as user input.
|
||||
|
||||
If user input, when using the template, user has to fill
|
||||
the amount of every input lines.
|
||||
|
||||
The journal entry form allows lo load, through a wizard,
|
||||
the template to use and the amounts to fill.
|
||||
|
||||
**Notable features:**
|
||||
|
||||
This module enhance the capability of module account_move_template with following features,
|
||||
|
||||
#. Optional account for negative amount.
|
||||
|
||||
When the Journal entry is created, and credit/debit is negative value, change debit/credit
|
||||
side and use the opt_account_id
|
||||
|
||||
#. Allow overwrite move line values with overwrite dict.
|
||||
|
||||
Normally, the journal items created by the template will require user input on wizard.
|
||||
This feature allow passing the overwrite values with a dictionary.
|
||||
This is particularly useful when the wizard is called by code.
|
||||
|
||||
Sample of dictionary to overwrite move lines::
|
||||
|
||||
{'L1': {'partner_id': 1, 'amount': 100, 'name': 'some label'},
|
||||
'L2': {'partner_id': 2, 'amount': 200, 'name': 'some label 2'}, }
|
||||
16
account_move_template/readme/USAGE.md
Normal file
16
account_move_template/readme/USAGE.md
Normal file
@@ -0,0 +1,16 @@
|
||||
To create new templates:
|
||||
|
||||
1. Make sure that you have flagged *Show Full Accounting Features* on
|
||||
your user, and that the user belongs to the *Billing Manager* group.
|
||||
2. Go to *Invoicing / Configuration / Accounting / Journal Entry
|
||||
Templates* and define there your templates. You can choose to
|
||||
complete a line using a defined formula, based on other lines, or by
|
||||
requiring user input.
|
||||
|
||||
To use an existing template:
|
||||
|
||||
1. Go to *Invoicing / Accounting / Actions / Create Entry from
|
||||
Template*
|
||||
2. Select one of the available templates.
|
||||
3. Complete the entries according to the template and click on the
|
||||
button *Generate Journal Entry*.
|
||||
@@ -1,13 +0,0 @@
|
||||
To create new templates:
|
||||
|
||||
#. Make sure that you have flagged *Show Full Accounting Features* on your
|
||||
user, and that the user belongs to the *Billing Manager* group.
|
||||
#. Go to *Invoicing / Configuration / Accounting / Journal Entry Templates* and
|
||||
define there your templates. You can choose to complete a line using a
|
||||
defined formula, based on other lines, or by requiring user input.
|
||||
|
||||
To use an existing template:
|
||||
|
||||
#. Go to *Invoicing / Accounting / Actions / Create Entry from Template*
|
||||
#. Select one of the available templates.
|
||||
#. Complete the entries according to the template and click on the button *Generate Journal Entry*.
|
||||
@@ -369,28 +369,30 @@ ul.auto-toc {
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:34347dc298f9465b955bbe2b251cdb66a8a945f650f447ac04b72f2a0d53734e
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-tools/tree/16.0/account_move_template"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_move_template"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>The user can configure journal entries templates, useful for recurring entries.
|
||||
The amount of each template line can be computed (through python code)
|
||||
or kept as user input.</p>
|
||||
<p>If user input, when using the template, user has to fill
|
||||
the amount of every input lines.</p>
|
||||
<p>The journal entry form allows lo load, through a wizard,
|
||||
the template to use and the amounts to fill.</p>
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-tools/tree/17.0/account_move_template"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_move_template"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>The user can configure journal entries templates, useful for recurring
|
||||
entries. The amount of each template line can be computed (through
|
||||
python code) or kept as user input.</p>
|
||||
<p>If user input, when using the template, user has to fill the amount of
|
||||
every input lines.</p>
|
||||
<p>The journal entry form allows lo load, through a wizard, the template to
|
||||
use and the amounts to fill.</p>
|
||||
<p><strong>Notable features:</strong></p>
|
||||
<p>This module enhance the capability of module account_move_template with following features,</p>
|
||||
<p>This module enhance the capability of module account_move_template with
|
||||
following features,</p>
|
||||
<ol class="arabic">
|
||||
<li><p class="first">Optional account for negative amount.</p>
|
||||
<blockquote>
|
||||
<p>When the Journal entry is created, and credit/debit is negative value, change debit/credit
|
||||
side and use the opt_account_id</p>
|
||||
<p>When the Journal entry is created, and credit/debit is negative
|
||||
value, change debit/credit side and use the opt_account_id</p>
|
||||
</blockquote>
|
||||
</li>
|
||||
<li><p class="first">Allow overwrite move line values with overwrite dict.</p>
|
||||
<blockquote>
|
||||
<p>Normally, the journal items created by the template will require user input on wizard.
|
||||
This feature allow passing the overwrite values with a dictionary.
|
||||
This is particularly useful when the wizard is called by code.</p>
|
||||
<p>Normally, the journal items created by the template will require
|
||||
user input on wizard. This feature allow passing the overwrite
|
||||
values with a dictionary. This is particularly useful when the
|
||||
wizard is called by code.</p>
|
||||
<p>Sample of dictionary to overwrite move lines:</p>
|
||||
<pre class="literal-block">
|
||||
{'L1': {'partner_id': 1, 'amount': 100, 'name': 'some label'},
|
||||
@@ -420,17 +422,19 @@ This is particularly useful when the wizard is called by code.</p>
|
||||
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
|
||||
<p>To create new templates:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Make sure that you have flagged <em>Show Full Accounting Features</em> on your
|
||||
user, and that the user belongs to the <em>Billing Manager</em> group.</li>
|
||||
<li>Go to <em>Invoicing / Configuration / Accounting / Journal Entry Templates</em> and
|
||||
define there your templates. You can choose to complete a line using a
|
||||
defined formula, based on other lines, or by requiring user input.</li>
|
||||
<li>Make sure that you have flagged <em>Show Full Accounting Features</em> on
|
||||
your user, and that the user belongs to the <em>Billing Manager</em> group.</li>
|
||||
<li>Go to <em>Invoicing / Configuration / Accounting / Journal Entry
|
||||
Templates</em> and define there your templates. You can choose to
|
||||
complete a line using a defined formula, based on other lines, or by
|
||||
requiring user input.</li>
|
||||
</ol>
|
||||
<p>To use an existing template:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Go to <em>Invoicing / Accounting / Actions / Create Entry from Template</em></li>
|
||||
<li>Select one of the available templates.</li>
|
||||
<li>Complete the entries according to the template and click on the button <em>Generate Journal Entry</em>.</li>
|
||||
<li>Complete the entries according to the template and click on the
|
||||
button <em>Generate Journal Entry</em>.</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
@@ -438,7 +442,7 @@ defined formula, based on other lines, or by requiring user input.</li>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_move_template%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_move_template%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -462,16 +466,17 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<li>Lorenzo Battistini <<a class="reference external" href="mailto:lorenzo.battistini@agilebg.com">lorenzo.battistini@agilebg.com</a>></li>
|
||||
<li>Paolo Chiara <<a class="reference external" href="mailto:p.chiara@isa.it">p.chiara@isa.it</a>></li>
|
||||
<li>Franco Tampieri <<a class="reference external" href="mailto:franco.tampieri@agilebg.com">franco.tampieri@agilebg.com</a>></li>
|
||||
<li>Alexis de Lattre <<a class="reference external" href="mailto:alexis.delattre@akretion.com">alexis.delattre@akretion.com</a>> (full re-write for v12)</li>
|
||||
<li>Alexis de Lattre <<a class="reference external" href="mailto:alexis.delattre@akretion.com">alexis.delattre@akretion.com</a>> (full re-write for
|
||||
v12)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="module-contributors">
|
||||
<h3><a class="toc-backref" href="#toc-entry-7">Module Contributors</a></h3>
|
||||
<ul class="simple">
|
||||
<li>Jalal ZAHID <<a class="reference external" href="mailto:j.zahid@auriumtechnologies.com">j.zahid@auriumtechnologies.com</a>> (port to v10)</li>
|
||||
<li>Jalal ZAHID <<a class="reference external" href="mailto:j.zahid@auriumtechnologies.com">j.zahid@auriumtechnologies.com</a>> (port to v10)</li>
|
||||
<li>Alex Comba <<a class="reference external" href="mailto:alex.comba@agilebg.com">alex.comba@agilebg.com</a>> (Port to V8)</li>
|
||||
<li>Guewen Baconnier <<a class="reference external" href="mailto:guewen.baconnier@camptocamp.com">guewen.baconnier@camptocamp.com</a>></li>
|
||||
<li>Raf Ven <<a class="reference external" href="mailto:raf.ven@dynapps.be">raf.ven@dynapps.be</a>> (port to v11)</li>
|
||||
<li>Raf Ven <<a class="reference external" href="mailto:raf.ven@dynapps.be">raf.ven@dynapps.be</a>> (port to v11)</li>
|
||||
<li>Jordi Ballester <<a class="reference external" href="mailto:jordi.ballester@forgeflow.com">jordi.ballester@forgeflow.com</a>> (ForgeFlow)</li>
|
||||
<li><a class="reference external" href="https://www.sygel.es">Sygel</a>:<ul>
|
||||
<li>Harald Panten <<a class="reference external" href="mailto:harald.panten@sygel.es">harald.panten@sygel.es</a>></li>
|
||||
@@ -494,7 +499,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/16.0/account_move_template">OCA/account-financial-tools</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/17.0/account_move_template">OCA/account-financial-tools</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -160,7 +160,7 @@ Valid dictionary to overwrite template lines:
|
||||
def _overwrite_line(self, overwrite_vals):
|
||||
self.ensure_one()
|
||||
for line in self.line_ids:
|
||||
vals = overwrite_vals.get("L{}".format(line.sequence), {})
|
||||
vals = overwrite_vals.get(f"L{line.sequence}", {})
|
||||
safe_vals = self._safe_vals(line._name, vals)
|
||||
line.write(safe_vals)
|
||||
|
||||
@@ -239,7 +239,7 @@ Valid dictionary to overwrite template lines:
|
||||
]
|
||||
# With overwrite options
|
||||
overwrite = self._context.get("overwrite", {})
|
||||
move_line_vals = overwrite.get("L{}".format(line.sequence), {})
|
||||
move_line_vals = overwrite.get(f"L{line.sequence}", {})
|
||||
values.update(move_line_vals)
|
||||
# Use optional account, when amount is negative
|
||||
self._update_account_on_negative(line, values)
|
||||
|
||||
Reference in New Issue
Block a user