Fix typo on state 'cancelled' in delete
issue3303 review942002 (transplanted from 3d064c98434e733508cb8d2986a464ab82b2e756)
This commit is contained in:
1 parent
81f28015aa
commit
af8ce94403
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user