Commit Graph

19 Commits

Author SHA1 Message Date
sbejaoui
1e9755d1e0 [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
2019-11-26 11:16:49 +01:00
sbejaoui
e1a399e14b [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
2019-10-30 19:30:04 +01:00
sbejaoui
738f53a6c7 [12.0][IMP] - sale line linked to contracts must not be invoiced from sale order 2019-10-01 10:51:50 +02:00
sbejaoui
9d44088707 [12.0][IMP] - Improve unit tests 2019-10-01 09:23:30 +02:00
sbejaoui
424f819d87 [12.0][REF] - Split analytic accouts and contracts 2019-10-01 09:23:30 +02:00
sbejaoui
ae1b366692 [12.0][FIX] - create contract only on sale and done states 2019-10-01 09:23:30 +02:00
sbejaoui
27b157dcc8 [12.0][IMP] - option to decide if we automaticallt create contract a sale confirm 2019-10-01 09:23:30 +02:00
Thomas Binsfeld
0c118d8f3e [FIX] Product Contract: copy invoicing partner to created contract 2019-10-01 09:23:30 +02:00
Thomas Binsfeld
066a7397b8 [ADD] Contract Sale: fiscal position 2019-10-01 09:23:30 +02:00
Thomas Binsfeld
1c69339970 [ADD] Product Contract: payment term 2019-10-01 09:23:30 +02:00
sbejaoui
b9ffcd5054 [IMP] - get contract user from sale order user 2019-10-01 09:23:30 +02:00
sbejaoui
fc47a1edef [IMP] - _prepare_contract_value for sale order confirm 2019-10-01 09:23:30 +02:00
sbejaoui
29a83d7769 [IMP] - Upsell/Downsell contract from sale order 2019-10-01 09:23:30 +02:00
sbejaoui
147c40acaa [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
2019-10-01 09:23:30 +02:00
sbejaoui
3c882b6764 [FIX] - Remove recurring_next_date from sale order line
recurring_next_date should be computed by contract line to get default value
2019-10-01 09:23:30 +02:00
sbejaoui
44b7798a80 [IMP] - Link contract line to sale order line 2019-10-01 09:23:30 +02:00
sbejaoui
16f480c04c [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
2019-10-01 09:23:30 +02:00
sbejaoui
280eca9819 [IMP] - Add recurrence fields to product template and sale order line 2019-10-01 09:23:30 +02:00
Ted Salmon
43d21a3a4a [ADD] product_contract: Create module
* Add contract functionality to `product.templates`
* Add logic to create contracts from `sale.order` that contains contract products.
2019-10-01 09:20:17 +02:00