From a95da3e7f2887736adfd80be18c065a2e974931f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20D=C3=ADaz=20Miralles?= Date: Sat, 13 Dec 2025 22:50:10 +0100 Subject: [PATCH] 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 --- modules/stock_lot/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/stock_lot/stock.py b/modules/stock_lot/stock.py index 64c8d8bb39..40bb25c8d5 100644 --- a/modules/stock_lot/stock.py +++ b/modules/stock_lot/stock.py @@ -253,7 +253,7 @@ class LotTrace(ModelSQL, ModelView): 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