From 4cf61a985b0c8e07fd3715dde801e1ad7e420eba 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/account.py b/account.py index f2390158c1..2ee6be0d35 100644 --- a/account.py +++ b/account.py @@ -131,8 +131,7 @@ class TaxLine(metaclass=PoolMeta): ], states={ 'invisible': ~Eval('on_cash_basis', False), - }, - depends=['company', 'on_cash_basis']) + }) @classmethod def default_on_cash_basis(cls): @@ -222,7 +221,6 @@ class Invoice(metaclass=PoolMeta): states={ 'invisible': Eval('type') != 'in', }, - depends=['type'], help="The tax group reported on cash basis for this invoice.") @fields.depends('party', 'type')