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

        issue11134
        review380081002
diffstat:

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

diffs (42 lines):

diff -r 01d066cbc049 -r 18f14b9083f0 product.py
--- a/product.py        Wed Apr 06 23:37:44 2022 +0200
+++ b/product.py        Fri Apr 08 19:07:14 2022 +0200
@@ -16,7 +16,6 @@
         states={
             'invisible': Eval('shelf_life_state', 'none') == 'none',
             },
-        depends=['shelf_life_state'],
         help='In number of days.')
     expiration_state = fields.Selection(
         DATE_STATE, 'Expiration State', sort=False)
@@ -24,7 +23,6 @@
         states={
             'invisible': Eval('expiration_state', 'none') == 'none',
             },
-        depends=['expiration_state'],
         help='In number of days.')
 
     @staticmethod
diff -r 01d066cbc049 -r 18f14b9083f0 stock.py
--- a/stock.py  Wed Apr 06 23:37:44 2022 +0200
+++ b/stock.py  Fri Apr 08 19:07:14 2022 +0200
@@ -52,8 +52,7 @@
             'required': (
                 Eval('shelf_life_expiration_state', 'none') == 'required'),
             'invisible': Eval('shelf_life_expiration_state', 'none') == 'none',
-            },
-        depends=['shelf_life_expiration_state'])
+            })
     shelf_life_expiration_state = fields.Function(
         fields.Selection(DATE_STATE, 'Shelf Life Expiration State'),
         'on_change_with_shelf_life_expiration_state')
@@ -61,8 +60,7 @@
         states={
             'required': Eval('expiration_state', 'none') == 'required',
             'invisible': Eval('expiration_state', 'none') == 'none',
-            },
-        depends=['expiration_state'])
+            })
     expiration_state = fields.Function(
         fields.Selection(DATE_STATE, 'Expiration State'),
         'on_change_with_expiration_state')

Reply via email to