Variable quantity in contract recurrent invoicing
With this module, you will be able to define in recurring contracts some lines with variable quantity according to a provided formula.
Table of contents
Configuration
Go to Invoicing > 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 Invoicing > 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).
 
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Tecnativa
 
Contributors
- 
- Pedro M. Baeza
 - Carlos Roca
 - Víctor Martínez
 
 Dave Lasley <dave@laslabs.com>
Souheil Bejaoui <souheil.bejaoui@acsone.eu>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
This module is part of the OCA/contract project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Available languages
| Language | % translated | ||
|---|---|---|---|
| Spanish (AR) / Español (AR) | 
                                                 
                                                    100%
                                                    
                                                 
                                             | 
                                            ||
| Portuguese / Português | 
                                                 
                                                    97%
                                                    
                                                 
                                             | 
                                            ||
| Portuguese (BR) / Português (BR) | 
                                                 
                                                    97%
                                                    
                                                 
                                             | 
                                            ||
| German / Deutsch | 
                                                 
                                                    94%
                                                    
                                                 
                                             | 
                                            ||
| Croatian / hrvatski jezik | 
                                                 
                                                    51%
                                                    
                                                 
                                             | 
                                            ||
| Croatian / hrvatski jezik | 
                                                 
                                                    51%
                                                    
                                                 
                                             | 
                                            ||
| Chinese (Simplified) / 简体中文 | 
                                                 
                                                    31%
                                                    
                                                 
                                             | 
                                            ||
| French / Français | 
                                                 
                                                    28%
                                                    
                                                 
                                             | 
                                            ||
| Italian / Italiano | 
                                                 
                                                    25%
                                                    
                                                 
                                             | 
                                            ||
| Slovenian / slovenščina | 
                                                 
                                                    25%
                                                    
                                                 
                                             | 
                                            ||
| Portuguese / Português | 
                                                 
                                                    25%
                                                    
                                                 
                                             | 
                                            ||
| Dutch / Nederlands | 
                                                 
                                                    25%
                                                    
                                                 
                                             | 
                                            ||
| Finnish / Suomi | 
                                                 
                                                    25%
                                                    
                                                 
                                             | 
                                            ||
| Dutch / Nederlands | 
                                                 
                                                    25%
                                                    
                                                 
                                             | 
                                            ||
| Hindi / हिंदी | 
                                                 
                                                    22%
                                                    
                                                 
                                             | 
                                            ||
| French (CA) / Français (CA) | 
                                                 
                                                    22%
                                                    
                                                 
                                             | 
                                            ||
| Bulgarian / български език | 
                                                 
                                                    22%
                                                    
                                                 
                                             | 
                                            ||
| Romanian / română | 
                                                 
                                                    22%
                                                    
                                                 
                                             | 
                                            ||
| Norwegian Bokmål / Norsk bokmål | 
                                                 
                                                    22%
                                                    
                                                 
                                             | 
                                            ||
| Turkish / Türkçe | 
                                                 
                                                    20%
                                                    
                                                 
                                             | 
                                            ||
| Polish / Język polski | 
                                                 
                                                    20%
                                                    
                                                 
                                             | 
                                            ||
| Russian / русский язык | 
                                                 
                                                    20%
                                                    
                                                 
                                             | 
                                            ||
| Turkish / Türkçe | 
                                                 
                                                    20%
                                                    
                                                 
                                             | 
                                            ||
| Greek / Ελληνικά | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Thai / ภาษาไทย | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Swedish / Svenska | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Latvian / latviešu valoda | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Arabic / الْعَرَبيّة | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Spanish (CR) / Español (CR) | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Spanish (MX) / Español (MX) | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Dutch (BE) / Nederlands (BE) | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Japanese / 日本語 | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Hungarian / Magyar | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Macedonian / македонски јазик | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Spanish (VE) / Español (VE) | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Indonesian / Bahasa Indonesia | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| English (UK) | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Mongolian / монгол | 
                                                 
                                                    17%
                                                    
                                                 
                                             | 
                                            ||
| Spanish / Español | 
                                                 
                                                    14%
                                                    
                                                 
                                             | 
                                            ||
| Hebrew / עִבְרִי | 
                                                 
                                                    14%
                                                    
                                                 
                                             | 
                                            ||
| Lithuanian / Lietuvių kalba | 
                                                 
                                                    14%
                                                    
                                                 
                                             | 
                                            ||
| Lithuanian / Lietuvių kalba | 
                                                 
                                                    14%
                                                    
                                                 
                                             | 
                                            ||
| French (CH) / Français (CH) | 
                                                 
                                                    14%
                                                    
                                                 
                                             | 
                                            ||
| Persian / فارس | 
                                                 
                                                    14%
                                                    
                                                 
                                             | 
                                            ||
| Spanish / Español | 
                                                 
                                                    14%
                                                    
                                                 
                                             | 
                                            ||
| Slovak / Slovenský jazyk | 
                                                 
                                                    14%
                                                    
                                                 
                                             | 
                                            ||
| Ukrainian / українська | 
                                                 
                                                    14%
                                                    
                                                 
                                             | 
                                            ||
| Bosnian / bosanski jezik | 
                                                 
                                                    11%
                                                    
                                                 
                                             | 
                                            ||
| Estonian / Eesti keel | 
                                                 
                                                    8%
                                                    
                                                 
                                             | 
                                            ||
| Vietnamese / Tiếng Việt | 
                                                 
                                                    8%
                                                    
                                                 
                                             | 
                                            ||
| Chinese (Traditional) / 繁體中文 | 
                                                 
                                                    8%
                                                    
                                                 
                                             | 
                                            ||
| Vietnamese / Tiếng Việt | 
                                                 
                                                    8%
                                                    
                                                 
                                             | 
                                            ||
| Serbian (Latin) / srpski | 
                                                 
                                                    5%
                                                    
                                                 
                                             | 
                                            ||
| Spanish (EC) / Español (EC) | 
                                                 
                                                    5%
                                                    
                                                 
                                             | 
                                            ||
| Spanish (CO) / Español (CO) | 
                                                 
                                                    2%
                                                    
                                                 
                                             | 
                                            ||
| Galician / Galego | 
                                                 
                                                    2%
                                                    
                                                 
                                             | 
                                            ||
| Spanish (DO) / Español (DO) | 
                                                 
                                                    2%
                                                    
                                                 
                                             | 
                                            ||
| Galician / Galego | 
                                                 
                                                    2%
                                                    
                                                 
                                             | 
                                            ||
| Spanish (PY) / Español (PY) | 
                                                 
                                                    2%
                                                    
                                                 
                                             | 
                                            ||
| Slovak / Slovenský jazyk | 
                                                 
                                                    0%
                                                    
                                                 
                                             | 
                                            




