Commit Graph

755 Commits

Author SHA1 Message Date
oca-travis
df1dea6e58 [UPD] Update product_contract.pot 2023-07-26 13:12:01 +00:00
sbejaoui
8a25333a77 [12.0][FIX] - Set contract line analytic account at contract creation from SO 2023-07-26 13:12:01 +00:00
OCA-git-bot
d3157058f6 product_contract 12.0.3.0.0 2023-07-26 13:12:01 +00:00
sbejaoui
23b5f9748b [IMP] - Set recurring_invoicing_type for existing products set to monthlylastday 2023-07-26 13:12:01 +00:00
Stéphane Bidoul (ACSONE)
8d4a52baca [IMP] contract: support pre-paid for monthlylastday
monthlylastday is (almost) not a special case anymore \o/.
montlylastday is simply a montly period where the
periods are aligned on month boundaries.
The last bit of special casing is that postpaid generates
invoice the day after the last dasy of the period, except
for monthlylastday where the invoice is generated on the
last day of the period. This last exception will disappear
when we put the offset under user control.

This is a breaking change because the post-paid/pre-paid
mode becomes relevant for monthlylastday invoicing.
The field becomes visible in the UI. Code that generate
monthlylastday contract lines must now correctly set
the pre-paid/post-paid mode too. Some tests have had
to be adapted to reflect that.
2023-07-26 13:12:01 +00:00
Martronic SA
403d27d057 Translated using Weblate (French)
Currently translated at 92.7% (38 of 41 strings)

Translation: contract-12.0/contract-12.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract/fr/
2023-07-26 13:12:01 +00:00
Bole
5a493468af Translated using Weblate (Croatian)
Currently translated at 100.0% (41 of 41 strings)

Translation: contract-12.0/contract-12.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract/hr/
2023-07-26 13:12:01 +00:00
sbejaoui
267128121a [12.0][FIX] - Run onchange contract_type when changing the contract template
Fix this use-case:

If the contract journal is not set on the contract template the contract is created
without a journal when confirming the sale order
2023-07-26 13:12:01 +00:00
OCA-git-bot
d941d2f84f product_contract 12.0.2.0.2 2023-07-26 13:12:01 +00:00
sbejaoui
80c6b728a1 [12.0][FIX] - contract company must be the same as the sale order
When creating a contract from a sale order the company must be the sale order
company and not the user company
2023-07-26 13:12:01 +00:00
Rudolf Schnapka
dea73e7501 Translated using Weblate (German)
Currently translated at 100.0% (41 of 41 strings)

Translation: contract-12.0/contract-12.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract/de/
2023-07-26 13:12:01 +00:00
Eder Brito
b65b286b79 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (41 of 41 strings)

Translation: contract-12.0/contract-12.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract/pt_BR/
2023-07-26 13:12:01 +00:00
Maria Sparenberg
318cbd7459 Translated using Weblate (German)
Currently translated at 61.0% (25 of 41 strings)

Translation: contract-12.0/contract-12.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract/de/
2023-07-26 13:12:01 +00:00
OCA-git-bot
ef6d868644 product_contract 12.0.2.0.1 2023-07-26 13:12:01 +00:00
OCA Transbot
bfcfe043ba Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-12.0/contract-12.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract/
2023-07-26 13:12:01 +00:00
oca-travis
61427981dc [UPD] Update product_contract.pot 2023-07-26 13:12:01 +00:00
sbejaoui
c6dd839389 [FIX] - Remove deprecated field 2023-07-26 13:12:01 +00:00
OCA-git-bot
4e6a732a5a [ADD] icon.png 2023-07-26 13:12:01 +00:00
OCA-git-bot
4d392e25d2 [UPD] README.rst 2023-07-26 13:12:01 +00:00
sbejaoui
fe302a6991 [12.0][IMP] - sale line linked to contracts must not be invoiced from sale order 2023-07-26 13:12:01 +00:00
sbejaoui
2c56ee8752 [IMP] - improve is contract visibility in product view 2023-07-26 13:12:01 +00:00
sbejaoui
74aded7ac0 [12.0][IMP] - Improve unit tests 2023-07-26 13:12:01 +00:00
sbejaoui
abf0e682f0 [12.0][REF] - Split analytic accouts and contracts 2023-07-26 13:12:01 +00:00
sbejaoui
c76761509b [12.0][FIX] - create contract only on sale and done states 2023-07-26 13:12:01 +00:00
sbejaoui
43e60d38f4 [FIX] - fix display name compute dependecy 2023-07-26 13:12:01 +00:00
sbejaoui
72922630c6 [12.0][IMP] - option to decide if we automaticallt create contract a sale confirm 2023-07-26 13:12:01 +00:00
Quentin Groulard
0f7dcb950c [ADD] Add start_date to contract_line display_name
In order to help distinguishing lines with the same name
2023-07-26 13:12:01 +00:00
sbejaoui
22ad6534a7 [IMP] - permit contract selection without contract_template_id 2023-07-26 13:12:01 +00:00
Thomas Binsfeld
76fe9b9fd0 [REF] Contract: set order count to 0 if no access to orders 2023-07-26 13:12:01 +00:00
sbejaoui
3153620ff0 [FIX] - date_end computed only for contract products 2023-07-26 13:12:01 +00:00
sbejaoui
576754d0bd [IMP] - cancel contract line if the downsell/upsell comes before 2023-07-26 13:12:01 +00:00
sbejaoui
a16a7e002a [FIX] - Get auto_renew_rule_type based on recurring_rule_type 2023-07-26 13:12:01 +00:00
sbejaoui
8a44e2a845 [FIX] - date_end required only for contract product 2023-07-26 13:12:01 +00:00
sbejaoui
4cd468b7b2 [FIX] - Fix recurring_next_date 2023-07-26 13:12:01 +00:00
Thomas Binsfeld
85c51e8b06 [FIX] Product Contract: copy invoicing partner to created contract 2023-07-26 13:12:01 +00:00
sbejaoui
1707ac954d [IMP] - auto_renew_rule deducted from recurring_rule_type and product_uom_qty 2023-07-26 13:12:01 +00:00
Thomas Binsfeld
fa8abd8c86 [ADD] Contract Sale: fiscal position 2023-07-26 13:12:01 +00:00
sbejaoui
2010e9bf36 [IMP] - Simplify sale order line creation for contract product 2023-07-26 13:12:01 +00:00
sbejaoui
4d4e1c4fb3 [REF] - predecessor_contract_line set in create process 2023-07-26 13:12:01 +00:00
sbejaoui
46a01d178a [IMP] - Add unit test 2023-07-26 13:12:01 +00:00
sbejaoui
676787db9f [FIX] - fix unit tests 2023-07-26 13:12:01 +00:00
sbejaoui
a921378c0d [IMP] - update invoice_line vals only if it is not null 2023-07-26 13:12:01 +00:00
Thomas Binsfeld
fbebeb4e38 [ADD] Product Contract: payment term 2023-07-26 13:12:01 +00:00
sbejaoui
864ab024d3 [FIX] - fix flake8 2023-07-26 13:12:01 +00:00
Thomas Binsfeld
fe93bf4fe8 [REF] Contract Product: invoice in prepare_invoice_line is optional 2023-07-26 13:12:01 +00:00
sbejaoui
aac6878faa [IMP] - show related sale orders in contract form 2023-07-26 13:12:01 +00:00
sbejaoui
e6eceaac96 [IMP] - get contract user from sale order user 2023-07-26 13:12:01 +00:00
sbejaoui
7a79ad7b39 [REM] - Remove unused method 2023-07-26 13:12:01 +00:00
sbejaoui
d2a58aea80 [IMP] - _prepare_contract_value for sale order confirm 2023-07-26 13:12:01 +00:00
sbejaoui
06a1c8ae9e [FIX] - include date_end in the period if the product is_autorenew 2023-07-26 13:12:01 +00:00