Commit Graph

25 Commits

Author SHA1 Message Date
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
Oscar Soto
5171a5eed3 [FIX]contract_count == len(active contracts) 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
1795723b62 [12.0][IMP] - option to decide if we automaticallt create contract a sale confirm 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
Thomas Binsfeld
57409beb0f [ADD] Contract Sale: fiscal position 2023-11-09 15:05:40 +01:00
Thomas Binsfeld
cae46a4cc1 [ADD] Product Contract: payment term 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
07d104c245 [IMP] - _prepare_contract_value for sale order confirm 2023-11-09 15:05:40 +01:00
sbejaoui
4db2c556ae [IMP] - Upsell/Downsell contract from sale order 2023-11-09 15:05:39 +01:00
sbejaoui
5d626d6385 [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-11-09 15:05:39 +01:00
sbejaoui
06ec626e2a [FIX] - Remove recurring_next_date from sale order line
recurring_next_date should be computed by contract line to get default value
2023-11-09 15:05:39 +01:00
sbejaoui
9d64e6f21a [IMP] - Link contract line to sale order line 2023-11-09 15:05:39 +01:00
sbejaoui
dc2b4aed7d [IMP] - Create contract on sale order confirmation
- On Sale Order confirmation, a contract is created for each contract template used on sale order lines
- A not finished contract can be mentioned on sale order line
- A sale order line linked to a contract will update it and don't create a new one if it had the same template
2023-11-09 15:05:39 +01:00
sbejaoui
8b52763d8d [IMP] - Add recurrence fields to product template and sale order line 2023-11-09 15:05:39 +01:00
Ted Salmon
7bbfbe1967 [ADD] product_contract: Create module
* Add contract functionality to `product.templates`
* Add logic to create contracts from `sale.order` that contains contract products.
2023-11-09 15:05:39 +01:00