[FIX] prevent deletion of menu items used in portals
bzr revid: rco@openerp.com-20110421120210-d7utp6hpy4kpxilz
This commit is contained in:
parent
2f5f7deac8
commit
238023a80c
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue