8 Commits

Author SHA1 Message Date
OCA-git-bot
77bd6e1dbb [UPD] README.rst 2023-09-03 12:12:38 +00:00
OCA-git-bot
4ed23be489 [UPD] README.rst 2022-11-08 07:19:46 +00:00
Víctor Martínez
9fe8209fb4 [MIG] contract_variable_quantity: Migration to 15.0
TT40289
2022-11-04 08:59:17 +01:00
Víctor Martínez
79f21e8048 [MIG] contract_variable_quantity: Migration to 14.0
[UPD] Update contract_variable_quantity.pot

[UPD] README.rst
2022-11-03 12:29:58 +01:00
Víctor Martínez
037120fca6 [IMP] contract_variable_quantity: Add qty_type field in portal 2022-11-03 12:29:58 +01:00
Carlos Roca
157b3ef17e [MIG] contract_variable_quantity: Migration to v13 2022-11-03 12:29:58 +01:00
sbejaoui
7d4c5cf739 [12.0][REF] - Contract Variable quantity: split from analytic accoun 2022-11-03 12:29:58 +01:00
Pedro M. Baeza
cacb80cc08 [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).
2022-11-03 12:29:58 +01:00