Commit Graph

9 Commits

Author SHA1 Message Date
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
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
2c56ee8752 [IMP] - improve is contract visibility in product view 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
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
03b9d23ae0 [IMP] - Add recurrence fields to product template and sale order line 2023-07-26 13:12:01 +00:00