Skip to content

Commit

Permalink
Fix extra moves created on canceled to draft
Browse files Browse the repository at this point in the history
Undeleted workflow causes extra moves

Fixes odoo#14813
  • Loading branch information
levkar committed Mar 25, 2017
1 parent 775022e commit ef966e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/mrp_repair/mrp_repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def action_cancel_draft(self, cr, uid, ids, *args):
for repair in self.browse(cr, uid, ids):
mrp_line_obj.write(cr, uid, [l.id for l in repair.operations], {'state': 'draft'})
self.write(cr, uid, ids, {'state': 'draft'})
self.delete_workflow(cr, uid, ids)
return self.create_workflow(cr, uid, ids)

def action_confirm(self, cr, uid, ids, *args):
Expand Down

0 comments on commit ef966e4

Please sign in to comment.