From aa0ee22815c058ccc24cee6d794acfedab20f2dc Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 26 Nov 2020 06:40:15 +0000 Subject: [PATCH] [UPD] README.rst --- account_move_template/README.rst | 25 +++++++++++++++++ .../static/description/index.html | 27 +++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/account_move_template/README.rst b/account_move_template/README.rst index 75cad53b..929ee975 100644 --- a/account_move_template/README.rst +++ b/account_move_template/README.rst @@ -35,6 +35,26 @@ 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'}, } + **Table of contents** .. contents:: @@ -55,6 +75,7 @@ To use an existing template: #. Go to *Invoicing / Accounting / Miscellaneous / Create Entry from Template* #. 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*. Bug Tracker @@ -104,6 +125,10 @@ Module Contributors * Harald Panten * Valentin Vinagre +* `Ecosoft `_: + + * Kitti U. (Add context overwrite) + Maintainers ~~~~~~~~~~~ diff --git a/account_move_template/static/description/index.html b/account_move_template/static/description/index.html index 01c6623c..976968c1 100644 --- a/account_move_template/static/description/index.html +++ b/account_move_template/static/description/index.html @@ -375,6 +375,28 @@ or kept as user input.

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. +
  3. 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'}, }
    +
    +
    +
  4. +

Table of contents

    @@ -406,6 +428,7 @@ defined formula, based on other lines, or by requiring user input.
    1. Go to Invoicing / Accounting / Miscellaneous / Create Entry from Template
    2. Select one of the available templates.
    3. +
    4. As option, you can overwrite output lines with dict, i.e., {“L1”: {“partner”: 1}}
    5. Complete the entries according to the template and click on the button Generate Journal Entry.
@@ -454,6 +477,10 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Valentin Vinagre <valentin.vinagre@sygel.es>
  • +
  • Ecosoft: +