changeset 0ee17ffee5d1 in modules/stock_location_move:default
details: 
https://hg.tryton.org/modules/stock_location_move?cmd=changeset&node=0ee17ffee5d1
description:
        Send only the required fields when fetching a readonly view definition

        issue11134
        review380081002
diffstat:

 stock.py |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r c3b387598941 -r 0ee17ffee5d1 stock.py
--- a/stock.py  Wed Apr 06 23:37:44 2022 +0200
+++ b/stock.py  Fri Apr 08 19:07:14 2022 +0200
@@ -17,8 +17,7 @@
         "Movable", select=True,
         states={
             'invisible': Eval('type') != 'storage',
-            },
-        depends=['type'])
+            })
     assigned_by = fields.Reference(
         "Assigned by", 'get_assigned_by', readonly=True)
 
@@ -119,8 +118,7 @@
         states={
             'readonly': (~Eval('state').in_(['request', 'draft'])
                 | ~Eval('from_location') | ~Eval('to_location')),
-            },
-        depends=['state', 'from_location', 'to_location'])
+            })
 
     @classmethod
     @ModelView.button

Reply via email to