diff options
| author | Raphael Collet <rco@openerp.com> | 2011-04-21 14:02:10 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2011-04-21 14:02:10 +0200 |
| commit | 238023a80c8cd33d07fa8e3928bbd3aecbdee749 (patch) | |
| tree | dfe0c5e051bbbf6628ebf4a66b1a0ceed7560b67 | |
| parent | 2f5f7deac827faf27af3b44f2dd4fb73e5ea0478 (diff) | |
[FIX] prevent deletion of menu items used in portals
bzr revid: rco@openerp.com-20110421120210-d7utp6hpy4kpxilz
| -rw-r--r-- | addons/portal/portal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/portal/portal.py b/addons/portal/portal.py index b8853cbc63d..84707648027 100644 --- a/addons/portal/portal.py +++ b/addons/portal/portal.py @@ -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', |
