From 57b2bfa5cee59af9583a0086d604368b79e3eecb 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 --- product.py | 1 - stock.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/product.py b/product.py index 3fde6b9e63..f03700f435 100644 --- a/product.py +++ b/product.py @@ -16,7 +16,6 @@ class Template(metaclass=PoolMeta): states={ 'invisible': Eval('type') == 'service', }, - depends=['type', 'default_uom_category'], help="The default unit for lot.") diff --git a/stock.py b/stock.py index eb849c2784..939244a9ff 100644 --- a/stock.py +++ b/stock.py @@ -17,7 +17,6 @@ class LotUnitMixin: domain=[ ('category', '=', Eval('product_default_uom_category', -1)), ], - depends=['product_default_uom_category'], help="The biggest unit for the lot.") unit_quantity = fields.Float( "Unit Quantity", digits='unit', @@ -25,7 +24,6 @@ class LotUnitMixin: 'required': Bool(Eval('unit')), 'invisible': ~Eval('unit'), }, - depends=['unit'], help="The maximal quantity for the lot.") product_default_uom_category = fields.Function(