From a6ab78c10916ee2dc04688d0a3df892c9510b57a Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Tue, 2 Apr 2024 14:05:48 +0200 Subject: [PATCH] [IMP] Display button to change location for multiple location group only + display the button on stock move line tab when this tab is visible --- .../views/stock_picking_view.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/stock_picking_operation_quick_change/views/stock_picking_view.xml b/stock_picking_operation_quick_change/views/stock_picking_view.xml index e97370f7510c..26b201f26faf 100644 --- a/stock_picking_operation_quick_change/views/stock_picking_view.xml +++ b/stock_picking_operation_quick_change/views/stock_picking_view.xml @@ -11,7 +11,18 @@ name="%(action_stock_picking_operation_change_location)d" type="action" string="Change Location" - groups="stock.group_stock_user" + groups="stock.group_stock_multi_locations" + attrs="{'invisible': [('show_operations', '=', True)]}" + > + + + +