[IMP] lunch: Restrict alert creation right to lunch managers

closes odoo/odoo#99021

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Yannick Tivisse
2022-08-30 08:18:37 +02:00
parent 503c0d6f8f
commit 27d58517b8
@@ -8,7 +8,6 @@ product_manager,"Product user",model_lunch_product,group_lunch_manager,1,1,1,1
product_category_user,"Product category user",model_lunch_product_category,group_lunch_user,1,0,0,0
product_category_manager,"Product category user",model_lunch_product_category,group_lunch_manager,1,1,1,1
lunch_alert_access,access_lunch_alert_user,model_lunch_alert,base.group_user,1,0,0,0
lunch_alert_user,access_lunch_alert_lunch_user,model_lunch_alert,group_lunch_user,1,1,1,1
lunch_alert_manager,access_lunch_alert_manager,model_lunch_alert,group_lunch_manager,1,1,1,1
lunch_cashmove_report_manager,access_lunch_cashmove_report,model_lunch_cashmove_report,base.group_user,1,0,0,0
lunch_location_user,access_lunch_location,model_lunch_location,group_lunch_user,1,1,0,0
1 id name model_id/id group_id/id perm_read perm_write perm_create perm_unlink
8 product_category_user Product category user model_lunch_product_category group_lunch_user 1 0 0 0
9 product_category_manager Product category user model_lunch_product_category group_lunch_manager 1 1 1 1
10 lunch_alert_access access_lunch_alert_user model_lunch_alert base.group_user 1 0 0 0
lunch_alert_user access_lunch_alert_lunch_user model_lunch_alert group_lunch_user 1 1 1 1
11 lunch_alert_manager access_lunch_alert_manager model_lunch_alert group_lunch_manager 1 1 1 1
12 lunch_cashmove_report_manager access_lunch_cashmove_report model_lunch_cashmove_report base.group_user 1 0 0 0
13 lunch_location_user access_lunch_location model_lunch_location group_lunch_user 1 1 0 0