Skip to content

Commit

Permalink
Merge pull request #104 from sebalix/13.0-shopfloor-fix-singleton-error
Browse files Browse the repository at this point in the history
shopfloor: fix singleton error
  • Loading branch information
simahawk authored Nov 2, 2020
2 parents 456dc3c + 2f275a1 commit 25c1483
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions shopfloor/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,13 @@ def _split_pickings_from_source_location(self):
"backorder_id": picking.id,
}
)
pickings.message_post(
body=_(
'The backorder <a href="#" '
'data-oe-model="stock.picking" '
'data-oe-id="%d">%s</a> has been created.'
)
% (new_picking.id, new_picking.name)
)
message = _(
'The backorder <a href="#" '
'data-oe-model="stock.picking" '
'data-oe-id="%d">%s</a> has been created.'
) % (new_picking.id, new_picking.name)
for pick in pickings:
pick.message_post(body=message)
new_moves.write({"picking_id": new_picking.id})
new_moves.mapped("move_line_ids").write({"picking_id": new_picking.id})
new_moves.move_line_ids.package_level_id.write(
Expand Down

0 comments on commit 25c1483

Please sign in to comment.