Commit Graph

19 Commits

Author SHA1 Message Date
sbejaoui
47922ad403 [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
2024-05-06 17:49:07 +02:00
sbejaoui
39d796b446 [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
2024-05-06 17:49:07 +02:00
sbejaoui
f6106181af [12.0][IMP] - sale line linked to contracts must not be invoiced from sale order 2024-05-06 17:49:07 +02:00
sbejaoui
59d254ee4a [12.0][IMP] - Improve unit tests 2024-05-06 17:49:07 +02:00
sbejaoui
14642e0bff [12.0][REF] - Split analytic accouts and contracts 2024-05-06 17:49:07 +02:00
sbejaoui
5b4b09ab5f [12.0][FIX] - create contract only on sale and done states 2024-05-06 17:49:07 +02:00
sbejaoui
bc0f33760e [12.0][IMP] - option to decide if we automaticallt create contract a sale confirm 2024-05-06 17:49:07 +02:00
Thomas Binsfeld
fc0dd2fc5a [FIX] Product Contract: copy invoicing partner to created contract 2024-05-06 17:49:07 +02:00
Thomas Binsfeld
0c22dcab31 [ADD] Contract Sale: fiscal position 2024-05-06 17:49:07 +02:00
Thomas Binsfeld
b4ec8b9dcd [ADD] Product Contract: payment term 2024-05-06 17:49:07 +02:00
sbejaoui
7a2443554b [IMP] - get contract user from sale order user 2024-05-06 17:49:07 +02:00
sbejaoui
061f743734 [IMP] - _prepare_contract_value for sale order confirm 2024-05-06 17:49:07 +02:00
sbejaoui
967d4dcef8 [IMP] - Upsell/Downsell contract from sale order 2024-05-06 17:49:07 +02:00
sbejaoui
9d01b3e20c [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
2024-05-06 17:49:07 +02:00
sbejaoui
26a3cbe417 [FIX] - Remove recurring_next_date from sale order line
recurring_next_date should be computed by contract line to get default value
2024-05-06 17:49:07 +02:00
sbejaoui
6be193af2f [IMP] - Link contract line to sale order line 2024-05-06 17:49:07 +02:00
sbejaoui
18649ec0c2 [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
2024-05-06 17:49:07 +02:00
sbejaoui
284dc91764 [IMP] - Add recurrence fields to product template and sale order line 2024-05-06 17:49:07 +02:00
Ted Salmon
85adab23c5 [ADD] product_contract: Create module
* Add contract functionality to `product.templates`
* Add logic to create contracts from `sale.order` that contains contract products.
2024-05-06 17:49:07 +02:00