Skip to content

Commit

Permalink
Merge PR #74 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by andhit-r
  • Loading branch information
ssi-bot committed Aug 31, 2024
2 parents a826040 + 1b1daf2 commit 5931622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssi_stock/models/stock_production_lot.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _compute_stock_move_line(self):
smls = self.env["stock.move.line"].search(
criteria, order="date asc, id asc"
)
if len(smls) == 1:
if len(smls) > 0:
first_sml = smls[0]
last_sml = smls[-1]
record.first_stock_move_line_id = first_sml
Expand Down

0 comments on commit 5931622

Please sign in to comment.