From 7129ec957a7b83e85895271ecbd7302028e06819 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 5 Jun 2014 15:53:28 +0200 Subject: [PATCH] [FIX] document_page: allow other users than administrator to create menu to a static page User should be at least have Configuration settings group to be allowed to create actions. Basic document page users do not have this rights, therefore we temporary give superuser_id to create the action This is related to rev 133c5033a092845e462b894c0d7739191480c709 --- addons/document_page/wizard/document_page_create_menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/document_page/wizard/document_page_create_menu.py b/addons/document_page/wizard/document_page_create_menu.py index 3d99518430d..3678820d14a 100644 --- a/addons/document_page/wizard/document_page_create_menu.py +++ b/addons/document_page/wizard/document_page_create_menu.py @@ -70,7 +70,7 @@ class document_page_create_menu(osv.osv_memory): value['domain'] = "[('parent_id','=',%d)]" % (page.id) value['res_id'] = page.id - action_id = obj_action.create(cr, uid, value) + action_id = obj_action.create(cr, SUPERUSER_ID, value) # only the super user is allowed to create menu due to security rules on ir.values menu_id = obj_menu.create(cr, SUPERUSER_ID, { 'name': data.menu_name,