From 77aef640465da4abb2d7456e4ad75f3e40e47fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 8 Apr 2022 19:07:12 +0200 Subject: [PATCH] Send only the required fields when fetching a readonly view definition issue11134 review380081002 --- account.py | 3 +-- invoice.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/account.py b/account.py index cfbe9ba87d..4d1ec188ec 100644 --- a/account.py +++ b/account.py @@ -18,8 +18,7 @@ def AccountTypeMixin(template=False): states={ 'invisible': ~Eval('statement').in_( ['off-balance', 'balance']), - }, - depends=['statement']) + }) if not template: for fname in dir(Mixin): field = getattr(Mixin, fname) diff --git a/invoice.py b/invoice.py index b623bb7f03..d334644f56 100644 --- a/invoice.py +++ b/invoice.py @@ -146,6 +146,5 @@ class DepositRecallStart(ModelView): domain=[ ('type.deposit', '=', True), ('company', '=', Eval('company', -1)), - ], - depends=['company']) + ]) description = fields.Text('Description', required=True)