Fix typo on state 'cancelled' in delete

issue3303
review942002
(transplanted from 3d064c98434e733508cb8d2986a464ab82b2e756)
This commit is contained in:
Vincent van der Leun committed 2013-07-16 11:17:30 +02:00
1 parent 81f28015aa
commit af8ce94403
1 file changed
+1 -1
+1 -1
View File
@@ -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)