Skip to content

Commit

Permalink
[FIX] Keep original id
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Sep 23, 2023
1 parent 7a88b45 commit 28a8d75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stock_picking_line_sequence/models/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def _reset_sequence(self):
for rec in self:
current_sequence = 1
for line in rec.move_ids_without_package:
# Check if the record ID is an integer (real ID) or a string (virtual ID)
if isinstance(line.id, int):
line.sequence = current_sequence
current_sequence += 1

Expand Down

0 comments on commit 28a8d75

Please sign in to comment.