From 342d1dce8bb601e26e23cd724933b3b2b74b9d46 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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stock.py b/stock.py index af60f984d1..cf65853ac2 100644 --- a/stock.py +++ b/stock.py @@ -34,8 +34,7 @@ class QuantityEarlyPlan(Workflow, ModelSQL, ModelView): 'stock.shipment.internal': [ ('company', '=', Eval('company', -1)), ], - }, - depends=['company']) + }) planned_date = fields.Function( fields.Date("Planned Date"), 'on_change_with_planned_date') @@ -58,8 +57,7 @@ class QuantityEarlyPlan(Workflow, ModelSQL, ModelView): "Earliest Percentage", digits=(1, 4), states={ 'invisible': ~Eval('earliest_date'), - }, - depends=['earliest_date']), + }), 'get_earliest_percentage') warehouse = fields.Function( fields.Many2One('stock.location', "Warehouse"),