Commit Graph

61 Commits

Author SHA1 Message Date
Rad0van
a41cafe605 [MIG] product_contract: Migration to 16.0 2024-06-21 14:49:40 +02:00
Ilyas
7856cf6ebd [IMP] product_contract: code improvements 2023-11-09 15:05:40 +01:00
Ilyas
4d312fb0a4 [IMP] product_contract: use _compute_display_name. Moved it to contract module. 2023-11-09 15:05:40 +01:00
Mourad
0ff986a53d [MIG] product_contract: Migration to 14.0 2023-11-09 15:05:40 +01:00
Mourad
fb5dc5eae3 [IMP] product_contract: black, isort, prettier 2023-11-09 15:05:40 +01:00
sbejaoui
40c4c687d3 [13.0][MIG] - migration product_contract 2023-11-09 15:05:40 +01:00
sbejaoui
98ea250435 [IMP] - Contract: add new recurring_rule_type quarterly and semesterly 2023-11-09 15:05:40 +01:00
sbejaoui
9b2c4201ab [12.0][FIX] - fix contract creation group by contract template 2023-11-09 15:05:40 +01:00
sbejaoui
11ebcdc006 [IMP] - use terminate term instead of resiliate 2023-11-09 15:05:40 +01:00
sbejaoui
e5da204711 [IMP] - can't upsell or downsell a resiliated contract 2023-11-09 15:05:40 +01:00
Ernesto Tejeda
5071b11391 [FIX] product_contract: set 'Contract template' field company depend 2023-11-09 15:05:40 +01:00
sbejaoui
feb8054fae [IMP] - Improve UX, open contract form if the sale order is related to one (same for contract) 2023-11-09 15:05:40 +01:00
sbejaoui
879212bc95 [12.0][ADD] - add auto_renew_interval, auto_renew_rule_type fields to sale order line 2023-11-09 15:05:40 +01:00
Oscar Soto
5171a5eed3 [FIX]contract_count == len(active contracts) 2023-11-09 15:05:40 +01:00
Pedro M. Baeza
25982d0cf7 [IMP] contract: remove redundant method
I have detected a method that was created as redundant and with the same
technique used when preparing the line values, so better to have
everything together in the same method instead of having it spread.
2023-11-09 15:05:40 +01:00
sbejaoui
cb57e3c995 [12.0][FIX] - Set contract line analytic account at contract creation from SO 2023-11-09 15:05:40 +01:00
sbejaoui
69d97b8a74 [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-11-09 15:05:40 +01:00
sbejaoui
1ce387b1c9 [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-11-09 15:05:40 +01:00
sbejaoui
1b20b6e5c0 [12.0][IMP] - sale line linked to contracts must not be invoiced from sale order 2023-11-09 15:05:40 +01:00
sbejaoui
1ea463dfa9 [12.0][IMP] - Improve unit tests 2023-11-09 15:05:40 +01:00
sbejaoui
b8fa244fc7 [12.0][REF] - Split analytic accouts and contracts 2023-11-09 15:05:40 +01:00
sbejaoui
a2ac920982 [12.0][FIX] - create contract only on sale and done states 2023-11-09 15:05:40 +01:00
sbejaoui
b0920c370c [FIX] - fix display name compute dependecy 2023-11-09 15:05:40 +01:00
sbejaoui
1795723b62 [12.0][IMP] - option to decide if we automaticallt create contract a sale confirm 2023-11-09 15:05:40 +01:00
Quentin Groulard
f9218d37b3 [ADD] Add start_date to contract_line display_name
In order to help distinguishing lines with the same name
2023-11-09 15:05:40 +01:00
sbejaoui
e6f15805bd [IMP] - permit contract selection without contract_template_id 2023-11-09 15:05:40 +01:00
Thomas Binsfeld
74591f8df6 [REF] Contract: set order count to 0 if no access to orders 2023-11-09 15:05:40 +01:00
sbejaoui
d1f59215fd [FIX] - date_end computed only for contract products 2023-11-09 15:05:40 +01:00
sbejaoui
e6b020caad [IMP] - cancel contract line if the downsell/upsell comes before 2023-11-09 15:05:40 +01:00
sbejaoui
b38a406158 [FIX] - Get auto_renew_rule_type based on recurring_rule_type 2023-11-09 15:05:40 +01:00
sbejaoui
95cfc9dbe9 [FIX] - Fix recurring_next_date 2023-11-09 15:05:40 +01:00
Thomas Binsfeld
e7a7beefaa [FIX] Product Contract: copy invoicing partner to created contract 2023-11-09 15:05:40 +01:00
sbejaoui
23ddc315fd [IMP] - auto_renew_rule deducted from recurring_rule_type and product_uom_qty 2023-11-09 15:05:40 +01:00
Thomas Binsfeld
57409beb0f [ADD] Contract Sale: fiscal position 2023-11-09 15:05:40 +01:00
sbejaoui
8ac0791418 [IMP] - Simplify sale order line creation for contract product 2023-11-09 15:05:40 +01:00
sbejaoui
2e06da22b3 [REF] - predecessor_contract_line set in create process 2023-11-09 15:05:40 +01:00
sbejaoui
a42a1fbbca [IMP] - Add unit test 2023-11-09 15:05:40 +01:00
sbejaoui
02f338ac5b [IMP] - update invoice_line vals only if it is not null 2023-11-09 15:05:40 +01:00
Thomas Binsfeld
cae46a4cc1 [ADD] Product Contract: payment term 2023-11-09 15:05:40 +01:00
Thomas Binsfeld
e7df781daa [REF] Contract Product: invoice in prepare_invoice_line is optional 2023-11-09 15:05:40 +01:00
sbejaoui
41b6db34f8 [IMP] - show related sale orders in contract form 2023-11-09 15:05:40 +01:00
sbejaoui
a5cd06bebb [IMP] - get contract user from sale order user 2023-11-09 15:05:40 +01:00
sbejaoui
5a0f24bd6e [REM] - Remove unused method 2023-11-09 15:05:40 +01:00
sbejaoui
07d104c245 [IMP] - _prepare_contract_value for sale order confirm 2023-11-09 15:05:40 +01:00
sbejaoui
758eac6f1e [FIX] - include date_end in the period if the product is_autorenew 2023-11-09 15:05:40 +01:00
sbejaoui
d081d7e067 [FIX] - fix onchange 2023-11-09 15:05:40 +01:00
sbejaoui
1426baa447 [FIX] - on upsel, contract line should stop day - 1 2023-11-09 15:05:40 +01:00
sbejaoui
c218efbd16 [IMP] - link contract line and its successor in upsel case 2023-11-09 15:05:40 +01:00
sbejaoui
8abbd4a3fd [IMP] - compute date end onchange date start for auto-renew sale order lines 2023-11-09 15:05:40 +01:00
sbejaoui
4ce0cb8780 [ADD] - Add renewal process with termination notice 2023-11-09 15:05:39 +01:00