Commit Graph

25 Commits

Author SHA1 Message Date
sbejaoui
c05e36837f [12.0][FIX] - fix contract creation group by contract template 2022-06-18 14:50:18 +02:00
sbejaoui
5346fbfecc [IMP] - use terminate term instead of resiliate 2022-06-18 14:50:18 +02:00
sbejaoui
730655e1e8 [IMP] - can't upsell or downsell a resiliated contract 2022-06-18 14:50:18 +02:00
Ernesto Tejeda
0903328b14 [FIX] product_contract: set 'Contract template' field company depend 2022-06-18 14:50:18 +02:00
sbejaoui
09a2429633 [IMP] - Improve UX, open contract form if the sale order is related to one (same for contract) 2022-06-18 14:50:18 +02:00
Oscar Soto
e065a99d3c [FIX]contract_count == len(active contracts) 2022-06-18 14:50:18 +02:00
sbejaoui
d01e62fe35 [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
2022-06-18 14:50:18 +02:00
sbejaoui
859799fabd [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
2022-06-18 14:50:18 +02:00
sbejaoui
0e0d8ecd6c [12.0][IMP] - sale line linked to contracts must not be invoiced from sale order 2022-06-18 14:50:18 +02:00
sbejaoui
677b955b49 [12.0][IMP] - Improve unit tests 2022-06-18 14:50:18 +02:00
sbejaoui
df1880e81a [12.0][REF] - Split analytic accouts and contracts 2022-06-18 14:50:18 +02:00
sbejaoui
dc45925e0c [12.0][FIX] - create contract only on sale and done states 2022-06-18 14:50:18 +02:00
sbejaoui
e875e1be6b [12.0][IMP] - option to decide if we automaticallt create contract a sale confirm 2022-06-18 14:50:18 +02:00
Thomas Binsfeld
88df66f0ea [FIX] Product Contract: copy invoicing partner to created contract 2022-06-18 14:50:18 +02:00
Thomas Binsfeld
0a4f030249 [ADD] Contract Sale: fiscal position 2022-06-18 14:50:18 +02:00
Thomas Binsfeld
64e92d3773 [ADD] Product Contract: payment term 2022-06-18 14:50:18 +02:00
sbejaoui
f9e12edc86 [IMP] - get contract user from sale order user 2022-06-18 14:50:18 +02:00
sbejaoui
a99b9970f2 [IMP] - _prepare_contract_value for sale order confirm 2022-06-18 14:50:18 +02:00
sbejaoui
cd3c602175 [IMP] - Upsell/Downsell contract from sale order 2022-06-18 14:50:18 +02:00
sbejaoui
c9915a121a [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
2022-06-18 14:50:18 +02:00
sbejaoui
6b59233c36 [FIX] - Remove recurring_next_date from sale order line
recurring_next_date should be computed by contract line to get default value
2022-06-18 14:50:18 +02:00
sbejaoui
a66beca941 [IMP] - Link contract line to sale order line 2022-06-18 14:50:18 +02:00
sbejaoui
95a3e0c63b [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
2022-06-18 14:50:18 +02:00
sbejaoui
a4dc864746 [IMP] - Add recurrence fields to product template and sale order line 2022-06-18 14:50:18 +02:00
Ted Salmon
5b970e39e3 [ADD] product_contract: Create module
* Add contract functionality to `product.templates`
* Add logic to create contracts from `sale.order` that contains contract products.
2022-06-18 14:50:17 +02:00