details:   https://code.tryton.org/tryton/commit/a4b4a3750b9b
branch:    7.4
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
        (grafted from aa1bb0828ed19d9612d40b4fa2a242178edc54ec)
diffstat:

 modules/stock_lot/stock.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8930ead64030 -r a4b4a3750b9b modules/stock_lot/stock.py
--- a/modules/stock_lot/stock.py        Sun Dec 14 20:12:17 2025 +0100
+++ b/modules/stock_lot/stock.py        Sat Dec 13 12:56:46 2025 +0100
@@ -288,7 +288,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):

Reply via email to