From af8ce9440328dccc9e50a93de7cd68d7a627fadb 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 be93a77acf..bce73c6e77 100644 --- a/opportunity.py +++ b/opportunity.py @@ -278,7 +278,7 @@ class SaleOpportunity(Workflow, ModelSQL, ModelView): # Cancel before delete self.cancel(ids) for opportunity in self.browse(ids): - if opportunity.state != 'cancel': + if opportunity.state != 'cancelled': self.raise_user_error('delete_cancel', opportunity.rec_name) return super(SaleOpportunity, self).delete(ids)