2
0

[UPD] README.rst

This commit is contained in:
OCA-git-bot 2020-11-26 06:40:15 +00:00 committed by Abraham Anes
parent 5cf1b79234
commit aa0ee22815
2 changed files with 52 additions and 0 deletions

View File

@ -35,6 +35,26 @@ the amount of every input lines.
The journal entry form allows lo load, through a wizard, The journal entry form allows lo load, through a wizard,
the template to use and the amounts to fill. 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'}, }
**Table of contents** **Table of contents**
.. contents:: .. contents::
@ -55,6 +75,7 @@ To use an existing template:
#. Go to *Invoicing / Accounting / Miscellaneous / Create Entry from Template* #. Go to *Invoicing / Accounting / Miscellaneous / Create Entry from Template*
#. Select one of the available templates. #. Select one of the available templates.
#. As option, you can overwrite output lines with dict, i.e., {"L1": {"partner": 1}}
#. Complete the entries according to the template and click on the button *Generate Journal Entry*. #. Complete the entries according to the template and click on the button *Generate Journal Entry*.
Bug Tracker Bug Tracker
@ -104,6 +125,10 @@ Module Contributors
* Harald Panten <harald.panten@sygel.es> * Harald Panten <harald.panten@sygel.es>
* Valentin Vinagre <valentin.vinagre@sygel.es> * Valentin Vinagre <valentin.vinagre@sygel.es>
* `Ecosoft <http://ecosoft.co.th>`_:
* Kitti U. <kittiu@ecosoft.co.th> (Add context overwrite)
Maintainers Maintainers
~~~~~~~~~~~ ~~~~~~~~~~~

View File

@ -375,6 +375,28 @@ or kept as user input.</p>
the amount of every input lines.</p> the amount of every input lines.</p>
<p>The journal entry form allows lo load, through a wizard, <p>The journal entry form allows lo load, through a wizard,
the template to use and the amounts to fill.</p> 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>
<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>
</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>Sample of dictionary to overwrite move lines:</p>
<pre class="literal-block">
{'L1': {'partner_id': 1, 'amount': 100, 'name': 'some label'},
'L2': {'partner_id': 2, 'amount': 200, 'name': 'some label 2'}, }
</pre>
</blockquote>
</li>
</ol>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
<ul class="simple"> <ul class="simple">
@ -406,6 +428,7 @@ defined formula, based on other lines, or by requiring user input.</li>
<ol class="arabic simple"> <ol class="arabic simple">
<li>Go to <em>Invoicing / Accounting / Miscellaneous / Create Entry from Template</em></li> <li>Go to <em>Invoicing / Accounting / Miscellaneous / Create Entry from Template</em></li>
<li>Select one of the available templates.</li> <li>Select one of the available templates.</li>
<li>As option, you can overwrite output lines with dict, i.e., {“L1”: {“partner”: 1}}</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> </ol>
</div> </div>
@ -454,6 +477,10 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<li>Valentin Vinagre &lt;<a class="reference external" href="mailto:valentin.vinagre&#64;sygel.es">valentin.vinagre&#64;sygel.es</a>&gt;</li> <li>Valentin Vinagre &lt;<a class="reference external" href="mailto:valentin.vinagre&#64;sygel.es">valentin.vinagre&#64;sygel.es</a>&gt;</li>
</ul> </ul>
</li> </li>
<li><a class="reference external" href="http://ecosoft.co.th">Ecosoft</a>:<ul>
<li>Kitti U. &lt;<a class="reference external" href="mailto:kittiu&#64;ecosoft.co.th">kittiu&#64;ecosoft.co.th</a>&gt; (Add context overwrite)</li>
</ul>
</li>
</ul> </ul>
</div> </div>
</div> </div>