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
This commit is contained in:
José Antonio Díaz Miralles
2025-12-13 22:50:10 +01:00
parent fd565b8ce6
commit a95da3e7f2
+1 -1
View File
@@ -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