11 Commits

Author SHA1 Message Date
OCA-git-bot
5a66776d80 [BOT] post-merge updates 2024-08-19 09:21:11 +00:00
Juanjo
42457f5a3b [MIG] contract_variable_quantity: Migration to 17.0 2024-08-16 09:43:56 +02:00
Juanjo
9af4922f35 [IMP] contract_variable_quantity: pre-commit auto fixes 2024-08-07 18:23:10 +02:00
Alicia Garzo Moreno
e40581f643 [16.0][IMP] contract and contract_variable_quantity: improve visual of contract lines 2024-08-07 18:23:10 +02:00
Carolina Fernandez
8e6d78bd7a [MIG] contract_variable_quantity: Migration to 16.0 2024-08-07 18:23:10 +02:00
Víctor Martínez
3ddd1ac265 [MIG] contract_variable_quantity: Migration to 15.0
TT40289
2024-07-22 11:49:58 +02:00
Víctor Martínez
a51bbc2037 [MIG] contract_variable_quantity: Migration to 14.0
[UPD] Update contract_variable_quantity.pot

[UPD] README.rst
2024-07-22 11:49:58 +02:00
Víctor Martínez
fecb55f710 [IMP] contract_variable_quantity: Add qty_type field in portal 2024-07-22 11:49:58 +02:00
Carlos Roca
c16970c765 [MIG] contract_variable_quantity: Migration to v13 2024-07-22 11:49:58 +02:00
sbejaoui
02aae61126 [12.0][REF] - Contract Variable quantity: split from analytic accoun 2024-07-22 11:49:58 +02:00
Pedro M. Baeza
32143d8ef7 [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-07-22 11:49:58 +02:00