details:   https://code.tryton.org/tryton/commit/9ff0d4de4a84
branch:    7.4
user:      José Antonio Díaz Miralles <[email protected]>
date:      Sat Dec 13 22:50:10 2025 +0100
description:
        Use shipment select of stock move as selection for lot trace document

        The document is filled with the inventory or shipment of the stock move.

        Closes #14411
        (grafted from 0971bc6034f55df5c5be219d0b3f291216ad9271)
diffstat:

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

diffs (12 lines):

diff -r 1d29cd5b5121 -r 9ff0d4de4a84 modules/stock_lot/stock.py
--- a/modules/stock_lot/stock.py        Fri Nov 14 18:11:20 2025 +0100
+++ b/modules/stock_lot/stock.py        Sat Dec 13 22:50:10 2025 +0100
@@ -272,7 +272,7 @@
         pool = Pool()
         Model = pool.get('ir.model')
         Move = pool.get('stock.move')
-        return Move.get_origin() + [
+        return Move.get_shipment() + [
             ('stock.inventory', Model.get_name('stock.inventory'))]
 
     @classmethod

Reply via email to