changeset 21f3453da3d2 in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=21f3453da3d2
description:
        Show production on stock move form

        issue11254
        review384391002
diffstat:

 move.py |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r d084cfdc49ff -r 21f3453da3d2 move.py
--- a/move.py   Sat Mar 19 15:02:35 2022 +0100
+++ b/move.py   Sun Mar 20 01:27:59 2022 +0100
@@ -216,6 +216,9 @@
         help="Where the stock is moved to.")
     shipment = fields.Reference('Shipment', selection='get_shipment',
         readonly=True, select=True,
+        states={
+            'invisible': ~Eval('shipment'),
+            },
         help="Used to group several stock moves together.")
     origin = fields.Reference('Origin', selection='get_origin', select=True,
         states={

Reply via email to