Skip to content

Commit

Permalink
[FIX] shopfloor: zone_picking: Predictable sort
Browse files Browse the repository at this point in the history
Makes the sorting of stock move line more predictable if move lines share the same attributes
  • Loading branch information
lmignon committed May 2, 2024
1 parent a425d28 commit 0b86e6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shopfloor/actions/move_line_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ def _sort_key_move_lines(order):
return lambda line: (
-int(line.move_id.priority or "0"),
line.move_id.date,
line.move_id.id,
)
elif order == "location":
return lambda line: (
line.move_id.location_id.shopfloor_picking_sequence or "",
line.move_id.location_id.name,
line.move_id.date,
line.move_id.id,
)
return lambda line: line

Expand Down

0 comments on commit 0b86e6e

Please sign in to comment.