Commit Graph

26 Commits

Author SHA1 Message Date
Sergio Lop Sanz
dff413b8a8 [FIX] Hide create contract button as other buttons 2020-10-20 12:05:56 +02:00
OCA-git-bot
4950ce0740 Merge PR #462 into 12.0
Signed-off-by sbejaoui
2020-03-18 17:01:38 +00:00
OCA-git-bot
bdaa8d30a6 Merge PR #471 into 12.0
Signed-off-by sbejaoui
2020-03-17 20:06:31 +00:00
sbejaoui
e71fcc1694 [IMP] - use terminate term instead of resiliate 2020-03-11 11:13:13 +01:00
sbejaoui
41a517bac1 [IMP] - can't upsell or downsell a resiliated contract 2020-03-10 11:12:51 +01:00
Ernesto Tejeda
500461396b [FIX] product_contract: set 'Contract template' field company depend 2020-03-09 16:06:17 +01:00
sbejaoui
b5378f5749 [12.0][ADD] - add auto_renew_interval, auto_renew_rule_type fields to sale order line 2020-02-27 15:52:43 +01:00
Oscar Soto
5224bf2173 [FIX]contract_count == len(active contracts) 2020-02-05 16:09:36 +01:00
Stéphane Bidoul (ACSONE)
557097be2d [IMP] contract: support pre-paid for monthlylastday
monthlylastday is (almost) not a special case anymore \o/.
montlylastday is simply a montly period where the
periods are aligned on month boundaries.
The last bit of special casing is that postpaid generates
invoice the day after the last dasy of the period, except
for monthlylastday where the invoice is generated on the
last day of the period. This last exception will disappear
when we put the offset under user control.

This is a breaking change because the post-paid/pre-paid
mode becomes relevant for monthlylastday invoicing.
The field becomes visible in the UI. Code that generate
monthlylastday contract lines must now correctly set
the pre-paid/post-paid mode too. Some tests have had
to be adapted to reflect that.
2019-12-09 13:17:15 +01:00
sbejaoui
b8550fce37 [FIX] - Remove deprecated field 2019-10-01 15:06:37 +02:00
sbejaoui
422e3699c5 [IMP] - improve is contract visibility in product view 2019-10-01 09:23:30 +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
27b157dcc8 [12.0][IMP] - option to decide if we automaticallt create contract a sale confirm 2019-10-01 09:23:30 +02:00
sbejaoui
50aeb77ec0 [IMP] - permit contract selection without contract_template_id 2019-10-01 09:23:30 +02:00
sbejaoui
850f6403da [FIX] - date_end required only for contract product 2019-10-01 09:23:30 +02:00
sbejaoui
df451582fc [IMP] - Simplify sale order line creation for contract product 2019-10-01 09:23:30 +02:00
sbejaoui
c5929d3005 [IMP] - show related sale orders in contract form 2019-10-01 09:23:30 +02:00
sbejaoui
639d2ee524 [IMP] - hide recurring_invoicing_type if recurring_rule_type is monthlylastday
for the monthlylastday case, pre-paid is logicly impossible,
if monthlylastday is set, we consider only post-paid case
2019-10-01 09:23:30 +02:00
sbejaoui
4c7a314ef6 [IMP] - compute date end onchange date start for auto-renew sale order lines 2019-10-01 09:23:30 +02:00
sbejaoui
d12a9110ee [ADD] - Add renewal process with termination notice 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
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
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