7 Commits

Author SHA1 Message Date
OCA-git-bot
191f606810 [UPD] README.rst 2023-09-03 12:12:16 +00:00
OCA-git-bot
a98c2c1c06 [UPD] README.rst 2021-10-04 09:03:08 +00:00
Víctor Martínez
5e20271c9b [MIG] contract_variable_quantity: Migration to 14.0 2021-09-24 08:18:15 +02:00
Víctor Martínez
9b69324d59 [IMP] contract_variable_quantity: Add qty_type field in portal 2021-09-23 16:57:39 +02:00
Carlos Roca
e0e5996b8b [MIG] contract_variable_quantity: Migration to v13 2021-09-23 16:57:39 +02:00
sbejaoui
6ec2228059 [12.0][REF] - Contract Variable quantity: split from analytic accoun 2021-09-23 16:47:59 +02:00
Pedro M. Baeza
222dc7373e [ADD] contract_variable_quantity:
=================================================
Variable quantity in contract recurrent invoicing
=================================================

With this module, you will be able to define in recurring contracts some
lines with variable quantity according a provided formula.

Configuration
=============

* Go to Sales > Configuration > Contracts > Formulas (quantity).
* Define any formula based on Python code that stores at some moment a
  float/integer value of the quantity to invoice in the variable 'result'.

  You can use these variables to compute your formula:

  * *env*: Environment variable for getting other models.
  * *context*: Current context dictionary.
  * *user*: Current user.
  * *line*: Contract recurring invoice line that triggers this formula.
  * *contract*: Contract whose line belongs to.
  * *invoice*: Invoice (header) being created.

Usage
=====

To use this module, you need to:

* Go to Sales -> Contracts and select or create a new contract.
* Check *Generate recurring invoices automatically*.
* Add a new recurring invoicing line.
* Select "Variable quantity" in column "Qty. type".
* Select one of the possible formulas to use (previously created).
2021-09-23 16:47:59 +02:00