Commit Graph

487 Commits

Author SHA1 Message Date
Pedro M. Baeza
a49f838a63 [IMP] contract_variable_quantity: Recompute price when changing qty
If you have contract lines with automatic price and your pricelist
contains different prices per quantity, the price is not changed
when computing quantity.

This PR fixes this.
2024-07-22 11:49:58 +02:00
Pedro M. Baeza
c529980e42 [IMP] contract_variable_quantity: Make name translatable 2024-07-22 11:49:58 +02:00
Carlos Dauden
aea6200f7e [IMP] contract_variable_quantity: Add option to don't create zero qty invoice lines 2024-07-22 11:49:58 +02:00
Pedro M. Baeza
50a67bb705 [FIX] contract_variable_quantity: Correct README menus references 2024-07-22 11:49:58 +02:00
Carlos Dauden
e4e2b9f82a [MIG] contract_variable_quantity: Migration to 11.0 2024-07-22 11:49:58 +02:00
Moisés López
588cc569ac [FIX] contract_payment_auto: Fix freze wkhtmltopdf freezed 2024-07-22 11:49:58 +02:00
Dave Lasley
decc1607de [10.0][IMP] Add variable qty to contract template view (#66)
* [IMP] Add variable qty to contract template view

* Bump minor version
2024-07-22 11:49:58 +02:00
Dave Lasley
bb4963c28f [IMP][10.0] contract: Add templating (#42)
Add template functionality for contracts
2024-07-22 11:49:58 +02:00
Dave Lasley
c6d41ae421 [MIG] contract_variable_quantity: Migrate to v10
* Bump version
* Change openerp references to odoo
* Installable to True
* Change permissions & views to accounting dependency
2024-07-22 11:49:58 +02:00
Pedro M. Baeza
53069fa4bb [MIG] Rename manifest files 2024-07-22 11:49:58 +02:00
Pedro M. Baeza
a10cbb0f43 [MIG] Make modules uninstallable 2024-07-22 11:49:58 +02:00
Carlos Dauden
4724f401ab [IMP] contract: Add past receipt type. Fix yearly. Add month last day 2024-07-22 11:49:58 +02:00
Pedro M. Baeza
4500201153 [IMP] contract_variable_quantity: Spanish translation 2024-07-22 11:49:58 +02:00
Pedro M. Baeza
f15bc98aee [IMP] contract_variable_quantity: Screenshot 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
Weblate
c2fd513321 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-17.0/contract-17.0-subscription_oca
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-subscription_oca/
2024-07-12 14:41:49 +00:00
Weblate
d160ec3e91 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-17.0/contract-17.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/
2024-07-12 11:30:58 +00:00
OCA-git-bot
1cd818b7fa [BOT] post-merge updates 2024-07-12 11:30:49 +00:00
oca-ci
a49e5d1b49 [UPD] Update contract.pot 2024-07-12 11:28:00 +00:00
oca-ci
7470b8a6fe [UPD] Update subscription_oca.pot 2024-07-12 11:27:58 +00:00
OCA-git-bot
8eedf72797 Merge PR #1099 into 17.0
Signed-off-by rousseldenis
2024-07-12 11:25:16 +00:00
sygel
f4e1dc66ab [MIG] subscription_oca: Migration to 17.0 2024-07-12 10:44:53 +02:00
sygel
0498fedd67 [IMP] subscription_oca: pre-commit auto fixes 2024-07-08 13:31:29 +02:00
mymage
327486c8e0 Added translation using Weblate (Italian) 2024-07-08 13:31:29 +02:00
Thijs van Oers
fe2f147af8 Translated using Weblate (Dutch)
Currently translated at 95.7% (159 of 166 strings)

Translation: contract-16.0/contract-16.0-subscription_oca
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-subscription_oca/nl/
2024-07-08 13:31:29 +02:00
Thijs van Oers
e91efbc164 Added translation using Weblate (Dutch) 2024-07-08 13:31:29 +02:00
Grégory Moka Tourisme
0915af0219 Added translation using Weblate (French) 2024-07-08 13:31:29 +02:00
OCA-git-bot
d1d41340f6 [BOT] post-merge updates 2024-07-08 13:31:29 +02:00
oca-ci
1ba29157a3 [UPD] Update subscription_oca.pot 2024-07-08 13:31:29 +02:00
Carol
5593a3fede [IMP] subscription_oca: tests adjustments 2024-07-08 13:31:29 +02:00
Ilyas
86fe0850fe [IMP] subscription_oca: tests 2024-07-08 13:31:29 +02:00
Carol
7516309e42 [MIG] subscription_oca: Migration to 16.0 2024-07-08 13:31:29 +02:00
Ivorra78
70b832e37c Added translation using Weblate (Spanish) 2024-07-08 13:31:29 +02:00
Ilyas
f96402cd9d [IMP] subscription_oca: refactoring 2024-07-08 13:31:29 +02:00
Ilyas
2cfb099eef [IMP] subscription_oca: tests 2024-07-08 13:31:29 +02:00
Carlos
1fefdd98aa [15.0][ADD] subscription_oca 2024-07-08 13:31:29 +02:00
oca-git-bot
79809451f4 [IMP] update dotfiles 2024-07-06 17:23:49 +00:00
jakobkrabbe
9be0a1fa91 Translated using Weblate (Swedish)
Currently translated at 100.0% (314 of 314 strings)

Translation: contract-17.0/contract-17.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/sv/
2024-06-05 14:38:22 +00:00
mymage
61c808e860 Translated using Weblate (Italian)
Currently translated at 100.0% (48 of 48 strings)

Translation: contract-17.0/contract-17.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-product_contract/it/
2024-06-05 10:36:51 +00:00
Weblate
89b11025a0 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-17.0/contract-17.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-product_contract/
2024-06-04 15:10:46 +00:00
OCA-git-bot
98659097ad [BOT] post-merge updates 2024-06-04 14:59:23 +00:00
oca-ci
a893745c6e [UPD] Update product_contract.pot 2024-06-04 14:56:25 +00:00
OCA-git-bot
f55f6303e4 Merge PR #1083 into 17.0
Signed-off-by pedrobaeza
2024-06-04 14:53:29 +00:00
mymage
586362d8f3 Translated using Weblate (Italian)
Currently translated at 100.0% (314 of 314 strings)

Translation: contract-17.0/contract-17.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/it/
2024-05-30 13:38:51 +00:00
David Jaen
d1602ac12d [IMP] product_contract: contract quantity same quantity of order 2024-05-08 16:17:59 +02:00
David Jaen
317012aac1 [MIG] product_contract: Migration to 17.0 2024-05-08 16:17:59 +02:00
David Jaen
df1331c8aa [IMP] product_contract: pre-commit auto fixes 2024-05-07 13:46:18 +02:00
Rad0van
6c4c858cd1 analytic_account_id 2024-05-06 17:49:07 +02:00
Rad0van
5c090b164f analytic_distribution 2024-05-06 17:49:07 +02:00
Rad0van
1b930d402e [MIG] product_contract: Migration to 16.0 2024-05-06 17:49:07 +02:00