From 404001af0dd791dec95ab8401f2430bb4c6fe038 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stock.py b/stock.py index aea35554cf..d6c655ce3f 100644 --- a/stock.py +++ b/stock.py @@ -82,8 +82,7 @@ class SplitMoveStart(ModelView): uom = fields.Many2One('product.uom', 'Uom', required=True, domain=[ ('category', '=', Eval('uom_category')), - ], - depends=['uom_category']) + ]) uom_category = fields.Many2One('product.uom.category', 'Uom Category', readonly=True) @@ -194,6 +193,5 @@ class SplitShipmentStart(ModelView): moves = fields.Many2Many( 'stock.move', None, None, "Moves", domain=[('id', 'in', Eval('domain_moves'))], - depends=['domain_moves'], help="The selected moves will be sent in the new shipment.") domain_moves = fields.Many2Many('stock.move', None, None, "Domain Moves")