[FIX] document_page: Menu for document page can only be created by superuser. (Maintenance Case: 607160)

lp bug: https://launchpad.net/bugs/1312665 fixed

bzr revid: rgo@tinyerp.com-20140507133222-qql3j1ttqk33une5
This commit is contained in:
Ravi Gohil (OpenERP) 2014-05-07 19:02:22 +05:30
parent 5bfc8cdfdc
commit da4333360e
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
#
##############################################################################
from openerp import SUPERUSER_ID
from openerp.osv import fields, osv
class document_page_create_menu(osv.osv_memory):
@ -70,7 +71,7 @@ class document_page_create_menu(osv.osv_memory):
value['res_id'] = page.id
action_id = obj_action.create(cr, uid, value)
menu_id = obj_menu.create(cr, uid, {
menu_id = obj_menu.create(cr, SUPERUSER_ID, {
'name': data.menu_name,
'parent_id':data.menu_parent_id.id,
'icon': 'STOCK_DIALOG_QUESTION',