54 lines
2.4 KiB
XML
54 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<!-- wizard action on res.partner -->
|
|
<act_window id="partner_wizard_action"
|
|
name="Portal Access Management"
|
|
src_model="res.partner"
|
|
res_model="portal.wizard"
|
|
view_type="form" view_mode="form"
|
|
key2="client_action_multi" target="new"
|
|
groups="base.group_partner_manager"/>
|
|
|
|
<!-- wizard view -->
|
|
<record id="wizard_view" model="ir.ui.view">
|
|
<field name="name">Portal Access Management</field>
|
|
<field name="model">portal.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Portal Access Management">
|
|
<group>
|
|
<field name="portal_id" widget="selection" on_change="onchange_portal_id(portal_id, context)"/>
|
|
</group>
|
|
<div>
|
|
Select which contacts should belong to the portal in the list below.
|
|
The email address of each selected contact must be valid and unique.
|
|
If necessary, you can fix any contact's email address directly in the list.
|
|
</div>
|
|
<field name="user_ids"/>
|
|
<field name="welcome_message"
|
|
placeholder="This text is included in the email sent to new portal users."/>
|
|
<footer>
|
|
<button string="Apply" name="action_apply" type="object" class="oe_highlight"/>
|
|
or
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- wizard user list view -->
|
|
<record id="wizard_user_tree_view" model="ir.ui.view">
|
|
<field name="name">Portal Users</field>
|
|
<field name="model">portal.wizard.user</field>
|
|
<field name="arch" type="xml">
|
|
<!-- the contact list is editable, but one cannot add or delete rows -->
|
|
<tree string="Contacts" editable="bottom" create="false" delete="false">
|
|
<field name="partner_id"/>
|
|
<field name="email"/>
|
|
<field name="in_portal"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|