2011-04-05 10:17:12 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
2011-04-20 08:09:10 +00:00
|
|
|
<!-- portal tree view -->
|
|
|
|
<record id="portal_list_view" model="ir.ui.view">
|
|
|
|
<field name="name">Portal List</field>
|
|
|
|
<field name="model">res.portal</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Portals">
|
|
|
|
<field name="name" string="Portal Name"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-04-05 10:17:12 +00:00
|
|
|
<!-- portal form view -->
|
2011-04-20 08:09:10 +00:00
|
|
|
<record id="portal_form_view" model="ir.ui.view">
|
2011-04-05 10:17:12 +00:00
|
|
|
<field name="name">Portal Form</field>
|
|
|
|
<field name="model">res.portal</field>
|
2011-04-20 08:09:10 +00:00
|
|
|
<field name="inherit_id" ref="base.view_groups_form"/>
|
2011-04-05 10:17:12 +00:00
|
|
|
<field name="arch" type="xml">
|
2011-04-20 08:09:10 +00:00
|
|
|
<page string="Users" position="before">
|
|
|
|
<page string="Portal">
|
2012-07-06 12:34:13 +00:00
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="url" widget="url" string="Portal URL"/>
|
|
|
|
<field name="home_action_id"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="override_menu"/>
|
|
|
|
<field name="parent_menu_id"
|
|
|
|
context="{'ir.ui.menu.full_list': True}"/>
|
2012-08-07 09:58:39 +00:00
|
|
|
<label for="partent_menu_id" colspan="1"/>
|
2012-07-06 12:34:13 +00:00
|
|
|
<button name="do_create_menu" type="object"
|
|
|
|
string="Create Parent Menu"/>
|
|
|
|
</group>
|
2012-04-24 06:05:32 +00:00
|
|
|
<separator string="Widgets Assigned to Users" colspan="2"/>
|
2011-08-02 13:50:30 +00:00
|
|
|
<field name="widget_ids" nolabel="1" colspan="2">
|
|
|
|
<tree string="Widgets" editable="bottom">
|
|
|
|
<field name="sequence"/>
|
|
|
|
<field name="widget_id"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</group>
|
2011-04-20 08:09:10 +00:00
|
|
|
</page>
|
|
|
|
</page>
|
2011-04-05 10:17:12 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2012-07-02 21:56:04 +00:00
|
|
|
<!-- action Administration/Portals/Portals -->
|
|
|
|
<record id="portal_list_action" model="ir.actions.act_window">
|
|
|
|
<field name="name">Portals</field>
|
|
|
|
<field name="res_model">res.portal</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<!-- a context is necessary to get the right portal form view -->
|
|
|
|
<field name="context">{'form_view_ref': 'portal.portal_form_view'}</field>
|
2012-08-04 14:35:56 +00:00
|
|
|
<field name="help" type="html">
|
2012-08-04 13:56:31 +00:00
|
|
|
<p class="oe_view_nocontent_create">
|
2012-08-04 13:21:36 +00:00
|
|
|
Click to create a new portal.
|
|
|
|
</p><p>
|
|
|
|
A portal helps defining specific views and rules for a group of
|
|
|
|
users (the portal group). A portal menu, widgets and specific
|
|
|
|
groups may be assigned to the portal's users.
|
|
|
|
</p>
|
2012-07-02 21:56:04 +00:00
|
|
|
</field>
|
2012-05-09 16:11:08 +00:00
|
|
|
</record>
|
2012-07-02 21:56:04 +00:00
|
|
|
<!-- menu Administration/Portals/Portals -->
|
|
|
|
<menuitem name="Portals Settings" id="portal_menu_settings" parent="base.menu_administration" groups="group_portal_manager"/>
|
2012-05-22 16:02:41 +00:00
|
|
|
<menuitem name="Portals" id="portal_list_menu" parent="portal_menu_settings" action="portal_list_action"/>
|
2012-05-16 15:12:46 +00:00
|
|
|
|
2011-04-05 10:17:12 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|