details: https://code.tryton.org/tryton/commit/aa1bb0828ed1
branch: default
user: José Antonio Díaz Miralles <[email protected]>
date: Sat Dec 13 12:56:46 2025 +0100
description:
Ensure that the computed traces of a stock move have a lot
For example the production module may include input or output moves
without
lot.
Closes #14396
diffstat:
modules/stock_lot/stock.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 332b8107a181 -r aa1bb0828ed1 modules/stock_lot/stock.py
--- a/modules/stock_lot/stock.py Thu Dec 11 18:27:45 2025 +0100
+++ b/modules/stock_lot/stock.py Sat Dec 13 12:56:46 2025 +0100
@@ -269,7 +269,7 @@
@classmethod
def _is_trace_move(cls, move):
- return move.state == 'done'
+ return move.state == 'done' and move.lot
@classmethod
def _trace_move_order_key(cls, move):