diff --git a/opportunity.py b/opportunity.py index b5a2e9468c..9fb9e7dfa0 100644 --- a/opportunity.py +++ b/opportunity.py @@ -264,7 +264,7 @@ class SaleOpportunity(Workflow, ModelSQL, ModelView): # Cancel before delete cls.cancel(opportunities) for opportunity in opportunities: - if opportunity.state != 'cancel': + if opportunity.state != 'cancelled': cls.raise_user_error('delete_cancel', opportunity.rec_name) super(SaleOpportunity, cls).delete(opportunities)