diff --git a/addons/portal/portal.py b/addons/portal/portal.py index a96a3d94641..ff50a1ddcf3 100644 --- a/addons/portal/portal.py +++ b/addons/portal/portal.py @@ -26,10 +26,15 @@ class portal(osv.osv): _description = 'Portal' _columns = { 'name': fields.char(string='Name', size=64, required=True), - 'user_ids': fields.one2many('res.users', 'portal_id', string='Portal users', + 'menu_id': fields.many2one('ir.ui.menu', + string='Portal Menu', + help="The customized menu of the portal's users"), + 'user_ids': fields.one2many('res.users', 'portal_id', + string='Users', help='Gives the set of users associated to this portal'), - 'group_ids': fields.many2many('res.groups', 'portal_group', 'portal_id', 'group_id', - string='Groups', help='Users of this portal automatically belong to those groups'), + 'group_ids': fields.many2many('res.groups', 'res_portals_groups_rel', 'pid', 'gid', + string='Groups', + help='Users of this portal automatically belong to those groups'), } portal() diff --git a/addons/portal/portal_view.xml b/addons/portal/portal_view.xml index c58f7bc2c5f..af9a3a1d61b 100644 --- a/addons/portal/portal_view.xml +++ b/addons/portal/portal_view.xml @@ -22,13 +22,47 @@
- - - - - + + + + + + + + + + + + + + + + + menu_tree_view + ir.ui.menu + tree + child_id + + + + + + + + Menu Structure + ir.actions.act_window + ir.ui.menu + [('parent_id','=',False)] + tree + + + +