From 9d30f3b902b49d240105c021e174ec2048badd20 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, 2 insertions(+), 2 deletions(-) diff --git a/account.py b/account.py index a2d4c4aa27..71c540adc4 100644 --- a/account.py +++ b/account.py @@ -30,7 +30,7 @@ class MoveLineGroup(MoveLineMixin, ModelSQL, ModelView): context={ 'company': Eval('company', -1), }, - depends=['company']) + depends={'company'}) maturity_date = fields.Date("Maturity Date", readonly=True) debit = Monetary( @@ -62,7 +62,7 @@ class MoveLineGroup(MoveLineMixin, ModelSQL, ModelView): context={ 'company': Eval('company', -1), }, - depends=['company']), + depends={'company'}), 'get_move_field', searcher='search_move_field') period = fields.Function(fields.Many2One( 'account.period', "Period"),