Commit Graph

23 Commits

Author SHA1 Message Date
sbejaoui
9dd48e8d5d [IMP] - use terminate term instead of resiliate 2023-07-26 13:12:01 +00:00
sbejaoui
a31dd36d59 [IMP] - can't upsell or downsell a resiliated contract 2023-07-26 13:12:01 +00:00
Ernesto Tejeda
49c85c197b [FIX] product_contract: set 'Contract template' field company depend 2023-07-26 13:12:01 +00:00
sbejaoui
fde12514d7 [12.0][ADD] - add auto_renew_interval, auto_renew_rule_type fields to sale order line 2023-07-26 13:12:01 +00:00
Oscar Soto
f92b3a6796 [FIX]contract_count == len(active contracts) 2023-07-26 13:12:01 +00:00
Stéphane Bidoul (ACSONE)
8d4a52baca [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.
2023-07-26 13:12:01 +00:00
sbejaoui
c6dd839389 [FIX] - Remove deprecated field 2023-07-26 13:12:01 +00:00
sbejaoui
2c56ee8752 [IMP] - improve is contract visibility in product view 2023-07-26 13:12:01 +00:00
sbejaoui
74aded7ac0 [12.0][IMP] - Improve unit tests 2023-07-26 13:12:01 +00:00
sbejaoui
abf0e682f0 [12.0][REF] - Split analytic accouts and contracts 2023-07-26 13:12:01 +00:00
sbejaoui
72922630c6 [12.0][IMP] - option to decide if we automaticallt create contract a sale confirm 2023-07-26 13:12:01 +00:00
sbejaoui
22ad6534a7 [IMP] - permit contract selection without contract_template_id 2023-07-26 13:12:01 +00:00
sbejaoui
8a44e2a845 [FIX] - date_end required only for contract product 2023-07-26 13:12:01 +00:00
sbejaoui
2010e9bf36 [IMP] - Simplify sale order line creation for contract product 2023-07-26 13:12:01 +00:00
sbejaoui
aac6878faa [IMP] - show related sale orders in contract form 2023-07-26 13:12:01 +00:00
sbejaoui
6e76fdfac8 [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
2023-07-26 13:12:01 +00:00
sbejaoui
737091c016 [IMP] - compute date end onchange date start for auto-renew sale order lines 2023-07-26 13:12:01 +00:00
sbejaoui
881eb87c2c [ADD] - Add renewal process with termination notice 2023-07-26 13:12:01 +00:00
sbejaoui
1f15f63951 [IMP] - Upsell/Downsell contract from sale order 2023-07-26 13:12:01 +00:00
sbejaoui
d44dff5d2c [FIX] - Remove recurring_next_date from sale order line
recurring_next_date should be computed by contract line to get default value
2023-07-26 13:12:01 +00:00
sbejaoui
33f6ad70bf [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-07-26 13:12:01 +00:00
sbejaoui
03b9d23ae0 [IMP] - Add recurrence fields to product template and sale order line 2023-07-26 13:12:01 +00:00
Ted Salmon
1c444627b9 [ADD] product_contract: Create module
* Add contract functionality to `product.templates`
* Add logic to create contracts from `sale.order` that contains contract products.
2023-07-26 13:12:01 +00:00