Commit Graph

12 Commits

Author SHA1 Message Date
Dave Lasley
75429db61d [MIG] contract_variable_quantity: Migrate to v10
* Bump version
* Change openerp references to odoo
* Installable to True
* Change permissions & views to accounting dependency
2016-12-05 08:57:14 -08:00
Stefan Rijnhart
cf8a39e492 Merge remote-tracking branch 'oca/9.0' into 10.0-contract 2016-11-12 09:44:26 +01:00
Rafael Blasco
26e650dedb Merge pull request #36 from Tecnativa/9.0-contract-IMP-advanced-past
[IMP] contract: Add pre-paid invoicing type. Fix yearly
2016-11-08 04:58:46 +01:00
OCA Transbot
ca07333cdf OCA Transbot updated translations from Transifex 2016-10-08 04:34:53 -04:00
Pedro M. Baeza
ec834fdd47 [MIG] Rename manifest files 2016-10-06 14:50:40 +02:00
Pedro M. Baeza
e75c6ed0b1 [MIG] Make modules uninstallable 2016-10-06 14:50:37 +02:00
Carlos Dauden
38a1d8fec5 [IMP] contract: Add past receipt type. Fix yearly. Add month last day 2016-10-03 00:00:01 +02:00
OCA Transbot
228099d29a OCA Transbot updated translations from Transifex 2016-09-17 04:55:30 -04:00
Pedro M. Baeza
e8a584af7c Update README.rst 2016-09-09 19:11:50 +02:00
Pedro M. Baeza
043057112a [IMP] contract_variable_quantity: Spanish translation 2016-09-09 19:05:05 +02:00
Pedro M. Baeza
8e6deab765 [IMP] contract_variable_quantity: Screenshot 2016-09-09 18:57:18 +02:00
Pedro M. Baeza
85da2e66c1 [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).
2016-09-09 03:05:15 +02:00