details:   https://code.tryton.org/tryton/commit/b48410ee84da
branch:    7.6
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 9cc53e4ecbbf -r b48410ee84da modules/stock_lot/stock.py
--- a/modules/stock_lot/stock.py        Sun Dec 14 20:11:54 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):

Reply via email to