add portal form view

bzr revid: rco@openerp.com-20110323125625-rmtw8aa1yizbo3eh
This commit is contained in:
Raphael Collet 2011-03-23 13:56:25 +01:00
parent 013d6896e8
commit 9ae71a4416
2 changed files with 41 additions and 8 deletions

View File

@ -27,19 +27,18 @@
"author" : "OpenERP SA",
"category": 'Tools',
"description": """
This module defines 'portals' to customize the access to your OpenERP database.
This module defines 'portals' to customize the access to your OpenERP database
for external users.
A portal defines customized user menu and access rights for a group of users
(the ones associated to that portal). Portals are convenient to provide a
specific access to your OpenERP instance for external users.
It also associates user groups to the portal users (adding a group in the
portal automatically adds it to the portal users, etc). That feature is very
handy when used in combination with the module 'share'.
(the ones associated to that portal). It also associates user groups to the
portal users (adding a group in the portal automatically adds it to the portal
users, etc). That feature is very handy when used in combination with the
module 'share'.
""",
'website': 'http://www.openerp.com',
'demo_xml': [],
'data': [],
'data': ['portal_view.xml'],
'installable': True,
'web': True,
'certificate' : '',

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- menu Administration/Portals -->
<menuitem name="Portals" id="portal_menu" parent="base.menu_administration"/>
<!-- menu 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>
</record>
<menuitem name="Portals" id="portal_list_menu" parent="portal_menu"
action="portal_list_action"/>
<!-- portal form view -->
<record id="portal_form" model="ir.ui.view">
<field name="name">Portal Form</field>
<field name="model">res.portal</field>
<field name="type">form</field>
<field name="priority" eval="16"/>
<field name="arch" type="xml">
<form string="Portal Form">
<group colspan="4">
<field name="name"/>
</group>
<field name="user_ids" string="Users" nolabel="1" colspan="2"/>
<field name="group_ids" string="Groups" nolabel="1" colspan="2"/>
</form>
</field>
</record>
</data>
</openerp>