From d0f453d9d4e68fd9c285527f11b2a50bcbf3112d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 8 Apr 2022 19:07:13 +0200 Subject: [PATCH] Send only the required fields when fetching a readonly view definition issue11134 review380081002 --- product.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/product.py b/product.py index ef0bed82cd..ddbdc2cada 100644 --- a/product.py +++ b/product.py @@ -31,16 +31,14 @@ class PriceListLine(metaclass=PoolMeta): If(Eval('start_date') & Eval('end_date'), ('start_date', '<=', Eval('end_date')), ()), - ], - depends=['end_date']) + ]) end_date = fields.Date( "End Date", domain=[ If(Eval('start_date') & Eval('end_date'), ('end_date', '>=', Eval('start_date')), ()), - ], - depends=['start_date']) + ]) def match(self, pattern): pool = Pool()