Fix typo on state 'cancelled' in delete

issue3303
review942002
This commit is contained in:
Vincent van der Leun
2013-07-16 11:17:30 +02:00
parent d3aa109e79
commit 0b7b3bf732
+1 -1
View File
@@ -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)