Commit Graph

7 Commits

Author SHA1 Message Date
Carolina Fernandez
ae8947af62 [MIG] contract_variable_quantity: Migration to 16.0 2024-01-05 11:12:09 -03:00
Víctor Martínez
aa78b00e21 [MIG] contract_variable_quantity: Migration to 15.0
TT40289
2024-01-05 11:07:39 -03:00
Víctor Martínez
1d6cec8247 [MIG] contract_variable_quantity: Migration to 14.0
[UPD] Update contract_variable_quantity.pot

[UPD] README.rst
2024-01-05 11:07:38 -03:00
Víctor Martínez
a7e6481dde [IMP] contract_variable_quantity: Add qty_type field in portal 2024-01-05 11:07:38 -03:00
Carlos Roca
b6332aa96c [MIG] contract_variable_quantity: Migration to v13 2024-01-05 11:07:38 -03:00
sbejaoui
ffbc6d713a [12.0][REF] - Contract Variable quantity: split from analytic accoun 2024-01-05 11:07:38 -03:00
Pedro M. Baeza
7c282e0157 [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).
2024-01-05 10:33:53 -03:00