Skip to content

Commit

Permalink
fixup! new method to validate moves in a separate transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
sebalix committed Sep 17, 2020
1 parent 4aafbf2 commit ba3939b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions shopfloor/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@ def extract_and_action_done(self):
)
% (picking.id, picking.name)
)
moves_todo.write({"picking_id": new_picking.id})
moves_todo.mapped("package_level_id").write({"picking_id": new_picking.id})
moves_todo.mapped("move_line_ids").write({"picking_id": new_picking.id})
new_picking.action_assign()
assert new_picking.state == "assigned"
moves_todo.write({"picking_id": new_picking.id})
moves_todo.package_level_id.write({"picking_id": new_picking.id})
moves_todo.move_line_ids.write({"picking_id": new_picking.id})
moves_todo.move_line_ids.package_level_id.write(
{"picking_id": new_picking.id}
)
new_picking.action_assign()
assert new_picking.state == "assigned"
new_picking.action_done()
return True

0 comments on commit ba3939b

Please sign in to comment.