From bbeea0e473e980fa1d694102904fda815ed260f0 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stock.py b/stock.py index 83bc07a044..fe815e5c2b 100644 --- a/stock.py +++ b/stock.py @@ -368,8 +368,7 @@ class Package(MeasurementsMixin, object, metaclass=PoolMeta): domain=[('category', '=', Id('product', 'uom_cat_weight'))], states={ 'required': Bool(Eval('additional_weight')), - }, - depends=['additional_weight']) + }) total_weight = fields.Function( fields.Float( "Total Weight", digits='weight_uom',