diff --git a/product_contract/models/sale_order.py b/product_contract/models/sale_order.py index dd3bc2a7ad..012c2b6bcc 100644 --- a/product_contract/models/sale_order.py +++ b/product_contract/models/sale_order.py @@ -110,6 +110,11 @@ def action_create_contract(self): line.create_contract_line(line.contract_id) return contract_model.browse(contracts) + def action_quotation_sent(self): + for line in self.order_line: + line._compute_auto_renew() + return super().action_quotation_sent() + def action_confirm(self): """If we have a contract in the order, set it up""" self.filtered(