Commit Graph

24 Commits

Author SHA1 Message Date
sbejaoui
ef91285268 [13.0][MIG] - migration product_contract 2022-06-18 14:54:58 +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
ad7434ad13 [12.0][ADD] - add auto_renew_interval, auto_renew_rule_type fields to sale order line 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
Stéphane Bidoul (ACSONE)
d9067a6e78 [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.
2022-06-18 14:50:18 +02:00
sbejaoui
4e913ad3ee [FIX] - Remove deprecated field 2022-06-18 14:50:18 +02:00
sbejaoui
46f9bb6234 [IMP] - improve is contract visibility in product view 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
e875e1be6b [12.0][IMP] - option to decide if we automaticallt create contract a sale confirm 2022-06-18 14:50:18 +02:00
sbejaoui
412ec28dfc [IMP] - permit contract selection without contract_template_id 2022-06-18 14:50:18 +02:00
sbejaoui
487a75cb02 [FIX] - date_end required only for contract product 2022-06-18 14:50:18 +02:00
sbejaoui
48b9fa255c [IMP] - Simplify sale order line creation for contract product 2022-06-18 14:50:18 +02:00
sbejaoui
1b9e84c373 [IMP] - show related sale orders in contract form 2022-06-18 14:50:18 +02:00
sbejaoui
b033e89d45 [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
2022-06-18 14:50:18 +02:00
sbejaoui
a5b27f084a [IMP] - compute date end onchange date start for auto-renew sale order lines 2022-06-18 14:50:18 +02:00
sbejaoui
a842f29af2 [ADD] - Add renewal process with termination notice 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
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
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