From b5de65ed6bfc3fb1e819e41c10ff2fd947eebe7a Mon Sep 17 00:00:00 2001 From: Nhomar Hernandez Date: Sat, 30 Sep 2017 15:29:21 +0200 Subject: [PATCH] [FIX] sales: Set proper group on all menus to avoid basic users like a warehouse basic user see all the sales app. I did not hide the main menu only because when we customize, we can use such menu for other purposes we just set the proper group on all first level menus and then by default the app is hidden if a custom module add a menu there without explicit groups then this will be shown again (which I think is the expected behaviour). Closes #19816 --- addons/sale/views/sale_views.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index 32ef3464bae..9f14e43ce10 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -17,7 +17,7 @@ + sequence="3" groups="sales_team.group_sale_salesman"/> + groups= "sales_team.group_sale_manager,account.group_account_manager,account.group_account_user"/> - + @@ -507,7 +507,7 @@ name="Orders" action="action_orders" parent="sale_order_menu" - sequence="2" groups="sales_team.group_sale_salesman,sales_team.group_sale_manager"/> + sequence="2" groups="sales_team.group_sale_salesman"/> Orders to Invoice @@ -531,7 +531,7 @@ + sequence="3" groups="sales_team.group_sale_salesman"/> + sequence="1" groups="sales_team.group_sale_salesman"/> sale.order.line.tree