mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[14.0][FIX] contract_sale_generation: Recompute next recurring date after generation on contract level
As in contract module, recompute recurring_next_date after sale generation on contract level
This commit is contained in:
@@ -120,6 +120,7 @@ class ContractContract(models.Model):
|
|||||||
lambda sale: sale.contract_auto_confirm
|
lambda sale: sale.contract_auto_confirm
|
||||||
)
|
)
|
||||||
sale_orders_to_confirm.action_confirm()
|
sale_orders_to_confirm.action_confirm()
|
||||||
|
self._compute_recurring_next_date()
|
||||||
return sale_orders
|
return sale_orders
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
|
|||||||
Reference in New Issue
Block a user