From 8a2ba0851efa66192718f0456e2c8008b8b35457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 8 Apr 2022 19:07:14 +0200 Subject: [PATCH] Send only the required fields when fetching a readonly view definition issue11134 review380081002 --- stock.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stock.py b/stock.py index 8987216f4d..aabfa8d2bf 100644 --- a/stock.py +++ b/stock.py @@ -17,8 +17,7 @@ class Location(metaclass=PoolMeta): "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 @@ class ShipmentInternal(metaclass=PoolMeta): states={ 'readonly': (~Eval('state').in_(['request', 'draft']) | ~Eval('from_location') | ~Eval('to_location')), - }, - depends=['state', 'from_location', 'to_location']) + }) @classmethod @ModelView.button