Commit Graph

54 Commits

Author SHA1 Message Date
sbejaoui
25fea4afc5 [12.0][FIX] - fix contract creation group by contract template 2023-03-30 13:59:09 +02:00
sbejaoui
be6dcd0e4d [IMP] - use terminate term instead of resiliate 2023-03-30 13:59:09 +02:00
sbejaoui
4450953113 [IMP] - can't upsell or downsell a resiliated contract 2023-03-30 13:59:09 +02:00
Ernesto Tejeda
86db9dc026 [FIX] product_contract: set 'Contract template' field company depend 2023-03-30 13:59:09 +02:00
sbejaoui
e86210409a [IMP] - Improve UX, open contract form if the sale order is related to one (same for contract) 2023-03-30 13:59:09 +02:00
sbejaoui
d1e5f6bb69 [12.0][ADD] - add auto_renew_interval, auto_renew_rule_type fields to sale order line 2023-03-30 13:59:09 +02:00
Oscar Soto
26431c5b47 [FIX]contract_count == len(active contracts) 2023-03-30 13:59:09 +02:00
Pedro M. Baeza
e924f3d143 [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-03-30 13:59:09 +02:00
sbejaoui
0c175a18fb [12.0][FIX] - Set contract line analytic account at contract creation from SO 2023-03-30 13:59:09 +02:00
sbejaoui
88497979e0 [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-03-30 13:59:09 +02:00
sbejaoui
18c897e67c [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-03-30 13:59:09 +02:00
sbejaoui
6cb39e62ec [12.0][IMP] - sale line linked to contracts must not be invoiced from sale order 2023-03-30 13:59:09 +02:00
sbejaoui
423dc4531b [12.0][IMP] - Improve unit tests 2023-03-30 13:59:09 +02:00
sbejaoui
c16bf2fe2e [12.0][REF] - Split analytic accouts and contracts 2023-03-30 13:59:09 +02:00
sbejaoui
4e29077acf [12.0][FIX] - create contract only on sale and done states 2023-03-30 13:59:09 +02:00
sbejaoui
e2d499bfd6 [FIX] - fix display name compute dependecy 2023-03-30 13:59:09 +02:00
sbejaoui
3a6544d1e3 [12.0][IMP] - option to decide if we automaticallt create contract a sale confirm 2023-03-30 13:59:09 +02:00
Quentin Groulard
eef7614269 [ADD] Add start_date to contract_line display_name
In order to help distinguishing lines with the same name
2023-03-30 13:59:09 +02:00
sbejaoui
8cefdeb800 [IMP] - permit contract selection without contract_template_id 2023-03-30 13:59:09 +02:00
Thomas Binsfeld
e8c4be156d [REF] Contract: set order count to 0 if no access to orders 2023-03-30 13:59:09 +02:00
sbejaoui
0127791e29 [FIX] - date_end computed only for contract products 2023-03-30 13:59:09 +02:00
sbejaoui
874e88f68b [IMP] - cancel contract line if the downsell/upsell comes before 2023-03-30 13:59:09 +02:00
sbejaoui
1859c3d5d5 [FIX] - Get auto_renew_rule_type based on recurring_rule_type 2023-03-30 13:59:09 +02:00
sbejaoui
b2a05cd09f [FIX] - Fix recurring_next_date 2023-03-30 13:59:09 +02:00
Thomas Binsfeld
f40bc23712 [FIX] Product Contract: copy invoicing partner to created contract 2023-03-30 13:59:09 +02:00
sbejaoui
8a863009ab [IMP] - auto_renew_rule deducted from recurring_rule_type and product_uom_qty 2023-03-30 13:59:09 +02:00
Thomas Binsfeld
9748620020 [ADD] Contract Sale: fiscal position 2023-03-30 13:59:09 +02:00
sbejaoui
0080d1a419 [IMP] - Simplify sale order line creation for contract product 2023-03-30 13:59:09 +02:00
sbejaoui
9585076924 [REF] - predecessor_contract_line set in create process 2023-03-30 13:59:09 +02:00
sbejaoui
0f76c80372 [IMP] - Add unit test 2023-03-30 13:59:09 +02:00
sbejaoui
4f01dcb7d1 [IMP] - update invoice_line vals only if it is not null 2023-03-30 13:59:09 +02:00
Thomas Binsfeld
a6ac4fef8a [ADD] Product Contract: payment term 2023-03-30 13:59:09 +02:00
Thomas Binsfeld
3e6f50b8e9 [REF] Contract Product: invoice in prepare_invoice_line is optional 2023-03-30 13:59:09 +02:00
sbejaoui
2fd7d8c0ec [IMP] - show related sale orders in contract form 2023-03-30 13:59:09 +02:00
sbejaoui
d044330fdd [IMP] - get contract user from sale order user 2023-03-30 13:59:09 +02:00
sbejaoui
cb8e71d621 [REM] - Remove unused method 2023-03-30 13:59:09 +02:00
sbejaoui
7b88322ee1 [IMP] - _prepare_contract_value for sale order confirm 2023-03-30 13:59:09 +02:00
sbejaoui
fb04ce19b1 [FIX] - include date_end in the period if the product is_autorenew 2023-03-30 13:59:09 +02:00
sbejaoui
0ba3ae658a [FIX] - fix onchange 2023-03-30 13:59:09 +02:00
sbejaoui
02396d3d95 [FIX] - on upsel, contract line should stop day - 1 2023-03-30 13:59:09 +02:00
sbejaoui
19c05f6dd8 [IMP] - link contract line and its successor in upsel case 2023-03-30 13:59:09 +02:00
sbejaoui
3685d9a2dd [IMP] - compute date end onchange date start for auto-renew sale order lines 2023-03-30 13:59:09 +02:00
sbejaoui
1347133695 [ADD] - Add renewal process with termination notice 2023-03-30 13:59:09 +02:00
sbejaoui
ba65321a31 [IMP] - Upsell/Downsell contract from sale order 2023-03-30 13:59:09 +02:00
sbejaoui
6350ccf2ec [FIX] - Compute recurring_next_date before create contract line 2023-03-30 13:59:09 +02:00
sbejaoui
232c4d7345 [IMP] - Onchange contract product on contract contract and contract template 2023-03-30 13:59:09 +02:00
sbejaoui
4bc77057cf [FIX] - Default value for date_start applied on product change 2023-03-30 13:59:09 +02:00
sbejaoui
6ccedf53ec [IMP] - Contract product are ignored on invoicing process
- Sale order line for contract product pass to nothing to invoice on order confirmation
- Contract Invoices are linked to sale order line
2023-03-30 13:59:09 +02:00
sbejaoui
6167501f3b [FIX] - Remove recurring_next_date from sale order line
recurring_next_date should be computed by contract line to get default value
2023-03-30 13:59:09 +02:00
sbejaoui
82506d9468 [IMP] - Link contract line to sale order line 2023-03-30 13:59:09 +02:00