From 8299218e21888d319855ebf71a922e0fa524975d 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 --- stock.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stock.py b/stock.py index 91f21dc784..110815080d 100644 --- a/stock.py +++ b/stock.py @@ -36,8 +36,7 @@ class QuantityIssue( 'stock.shipment.internal': [ ('company', '=', Eval('company', -1)), ], - }, - depends=['company']) + }) planned_date = fields.Function( fields.Date("Planned Date"), 'on_change_with_planned_date') @@ -60,7 +59,7 @@ class QuantityIssue( 'stock_skip_warehouse': False, 'stock_date_end': Eval('planned_date'), }, - depends=['company', 'warehouse', 'planned_date']) + depends={'company', 'warehouse', 'planned_date'}) processed_by = employee_field("Processed by", states=['processing']) solved_by = employee_field("Solved by", states=['solved'])