details: https://code.tryton.org/tryton/commit/9dd179a8c8af
branch: 7.6
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 cb19b626bb73 -r 9dd179a8c8af 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
@@ -253,7 +253,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