From 1bc8fa688a06597187d0fb48455a40d4b7fc7e72 Mon Sep 17 00:00:00 2001 From: Vincent van der Leun Date: Tue, 16 Jul 2013 11:17:30 +0200 Subject: [PATCH] Fix typo on state 'cancelled' in delete issue3303 review942002 (transplanted from 3d064c98434e733508cb8d2986a464ab82b2e756) --- opportunity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)