diff --git a/addons/sale_crm/models/sale_order.py b/addons/sale_crm/models/sale_order.py index 81ce2154f4a..50a97d196ab 100644 --- a/addons/sale_crm/models/sale_order.py +++ b/addons/sale_crm/models/sale_order.py @@ -10,3 +10,6 @@ class SaleOrder(models.Model): opportunity_id = fields.Many2one( 'crm.lead', string='Opportunity', check_company=True, domain="[('type', '=', 'opportunity'), '|', ('company_id', '=', False), ('company_id', '=', company_id)]") + + def action_confirm(self): + return super(SaleOrder, self.with_context({k:v for k,v in self._context.items() if k != 'default_tag_ids'})).action_confirm()