details: https://code.tryton.org/tryton/commit/63c53af38af4
branch: default
user: Cédric Krier <[email protected]>
date: Thu Oct 16 01:13:50 2025 +0200
description:
Add domain to warehouse of internal shipment
This ensures that the computed value is correct.
diffstat:
modules/stock/shipment.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r e2aa24e0782f -r 63c53af38af4 modules/stock/shipment.py
--- a/modules/stock/shipment.py Thu Oct 16 01:12:51 2025 +0200
+++ b/modules/stock/shipment.py Thu Oct 16 01:13:50 2025 +0200
@@ -2305,6 +2305,9 @@
warehouse = fields.Function(
fields.Many2One(
'stock.location', "Warehouse",
+ domain=[
+ ('type', '=', 'warehouse'),
+ ],
help="Where the stock is sent from."),
'on_change_with_warehouse')
to_warehouse = fields.Function(