[FIX] prevent deletion of menu items used in portals

bzr revid: rco@openerp.com-20110421120210-d7utp6hpy4kpxilz
This commit is contained in:
Raphael Collet 2011-04-21 14:02:10 +02:00
parent 2f5f7deac8
commit 238023a80c
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class portal(osv.osv):
'menu_action_id': fields.many2one('ir.actions.actions', readonly=True,
string='Menu Action',
help=_("If set, replaces the standard menu for the portal's users")),
'parent_menu_id': fields.many2one('ir.ui.menu',
'parent_menu_id': fields.many2one('ir.ui.menu', ondelete='restrict',
string='Parent Menu',
help=_('The menu action opens the submenus of this menu item')),
'widget_ids': fields.one2many('res.portal.widget', 'portal_id',