2010-06-08 11:40:49 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
2010-10-17 05:13:19 +00:00
|
|
|
<data>
|
2010-06-08 11:40:49 +00:00
|
|
|
|
2010-10-17 05:13:19 +00:00
|
|
|
<record id="share_step0_form" model="ir.ui.view">
|
2010-06-08 11:40:49 +00:00
|
|
|
<field name="name">share.step0.form</field>
|
2010-10-17 05:13:19 +00:00
|
|
|
<field name="model">share.wizard</field>
|
2010-06-08 11:40:49 +00:00
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-09 20:31:27 +00:00
|
|
|
<form string="Sharing: preparation" version="7.0">
|
|
|
|
<header>
|
2012-06-29 08:30:24 +00:00
|
|
|
<button name="go_step_1" string="Next" type="object" class="oe_highlight"/>
|
2012-06-27 13:45:30 +00:00
|
|
|
or
|
|
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
2012-06-09 22:28:49 +00:00
|
|
|
</header>
|
2012-06-09 20:31:27 +00:00
|
|
|
<separator
|
|
|
|
string="Please select the action that opens the screen containing the data you want to share."/>
|
|
|
|
<group>
|
|
|
|
<field name="action_id"/>
|
|
|
|
<label colspan="2"
|
|
|
|
string="Optionally, you may specify an additional domain restriction that will be applied to the shared data."/>
|
|
|
|
<field name="domain"/>
|
2010-10-17 05:13:19 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
2010-06-08 11:40:49 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="share_step1_form" model="ir.ui.view">
|
|
|
|
<field name="name">share.step1.form</field>
|
2010-10-17 05:13:19 +00:00
|
|
|
<field name="model">share.wizard</field>
|
2010-06-08 11:40:49 +00:00
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-09 20:31:27 +00:00
|
|
|
<form version="7.0">
|
|
|
|
<header>
|
2012-06-29 08:30:24 +00:00
|
|
|
<button name="go_step_2" string="Share" type="object" class="oe_highlight"/>
|
2012-06-27 13:45:30 +00:00
|
|
|
or
|
|
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
2012-06-09 22:28:49 +00:00
|
|
|
</header>
|
2012-06-20 07:37:12 +00:00
|
|
|
<group>
|
|
|
|
<field name="user_type" invisible="1"/>
|
|
|
|
<field name="invite" invisible="1"/>
|
2012-06-29 13:11:14 +00:00
|
|
|
</group>
|
2012-06-09 20:31:27 +00:00
|
|
|
<group>
|
2012-06-29 13:11:14 +00:00
|
|
|
<group colspan="4" name="emails_group" attrs="{'invisible':['|', ('user_type', '!=', 'emails'), ('invite', '=', True)]}"
|
|
|
|
string="Share with these People (one email per line)">
|
|
|
|
<field nolabel="1" name="new_users" attrs="{'required':[('user_type','=','emails'), ('invite', '!=', True)]}"/>
|
2012-06-09 20:31:27 +00:00
|
|
|
</group>
|
2012-07-02 09:51:33 +00:00
|
|
|
<group colspan="4" name="email_lines" attrs="{'invisible':['|', ('invite', '!=', True), ('user_type', '!=', 'emails')]}"
|
2012-06-29 13:11:14 +00:00
|
|
|
string="Share with these People (one email per line)">
|
2012-06-09 20:31:27 +00:00
|
|
|
<field name="email_1"/>
|
|
|
|
<field name="email_2"/>
|
|
|
|
<field name="email_3"/>
|
|
|
|
</group>
|
2012-06-29 13:11:14 +00:00
|
|
|
<group colspan="4" attrs="{'invisible':[('user_type', '=', 'embedded')]}"
|
|
|
|
string="Include an Optional Personal Message">
|
2012-06-09 20:31:27 +00:00
|
|
|
<field name="message" colspan="2" nolabel="1"/>
|
|
|
|
</group>
|
|
|
|
<group attrs="{'invisible':[('invite', '=', True)]}" string="Sharing Options">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="access_mode"/>
|
|
|
|
</group>
|
2012-03-20 18:09:17 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-06-08 11:40:49 +00:00
|
|
|
<record id="share_step2_form" model="ir.ui.view">
|
|
|
|
<field name="name">share.step2.form</field>
|
2010-10-17 05:13:19 +00:00
|
|
|
<field name="model">share.wizard</field>
|
2010-06-08 11:40:49 +00:00
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-09 20:31:27 +00:00
|
|
|
<form string="Access granted!" version="7.0">
|
|
|
|
<header>
|
|
|
|
<field name="user_type" invisible="1"/>
|
|
|
|
<field name="access_mode" invisible="1"/>
|
|
|
|
</header>
|
2012-06-29 13:11:14 +00:00
|
|
|
<group attrs="{'invisible':[('user_type','=','embedded')]}"
|
|
|
|
string="An email notification with instructions has been sent to the following people:">
|
2012-06-09 20:31:27 +00:00
|
|
|
<field name="result_line_ids" nolabel="1" mode="tree">
|
|
|
|
<tree string="Summary">
|
|
|
|
<field name="login"/>
|
|
|
|
</tree>
|
|
|
|
<form string="Access info" version="7.0">
|
|
|
|
<group>
|
|
|
|
<field name="login"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
2010-10-17 05:13:19 +00:00
|
|
|
</group>
|
2012-06-09 20:31:27 +00:00
|
|
|
<group colspan="4" col="1" attrs="{'invisible':[('user_type','!=','embedded')]}">
|
2012-06-29 13:21:42 +00:00
|
|
|
<group string="Use this link">
|
|
|
|
<field name="embed_url"/>
|
|
|
|
</group>
|
|
|
|
<group string="Or insert the following code where you want to embed your documents">
|
2012-06-09 20:31:27 +00:00
|
|
|
<field name="embed_code"/>
|
|
|
|
</group>
|
2012-06-29 13:21:42 +00:00
|
|
|
<group string="Embedded code options">
|
|
|
|
<field name="embed_option_title" on_change="onchange_embed_options(embed_option_title, embed_option_search)"/>
|
|
|
|
<field name="embed_option_search" on_change="onchange_embed_options(embed_option_title, embed_option_search)"
|
|
|
|
attrs="{'invisible':[('access_mode','=','readonly')]}"/>
|
|
|
|
</group>
|
2012-06-09 20:31:27 +00:00
|
|
|
</group>
|
|
|
|
|
2010-10-17 05:13:19 +00:00
|
|
|
</form>
|
2010-06-08 11:40:49 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-10-17 05:13:19 +00:00
|
|
|
<!-- action for manual launch from menuitem. context may contain:
|
|
|
|
- 'action_id' (id of action)
|
|
|
|
- 'domain' (string expression for full domain to apply as sent to server,
|
|
|
|
with dynamic data like 'uid' replaced by actual value (i.e. after eval)!)
|
|
|
|
-->
|
|
|
|
<record id="action_share_wizard" model="ir.actions.act_window">
|
|
|
|
<field name="name">Share Wizard</field>
|
2010-06-08 11:40:49 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
2010-10-17 05:13:19 +00:00
|
|
|
<field name="res_model">share.wizard</field>
|
2010-06-08 11:40:49 +00:00
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form</field>
|
2010-10-17 05:13:19 +00:00
|
|
|
<field name="view_id" ref="share_step0_form"/>
|
2010-06-08 11:40:49 +00:00
|
|
|
<field name="target">new</field>
|
|
|
|
</record>
|
|
|
|
|
2010-10-17 05:13:19 +00:00
|
|
|
<!-- action for direct launch from client widget with context providing:
|
|
|
|
- 'action_id' (id of action)
|
|
|
|
- 'domain' (string expression for full domain to apply as sent to server,
|
|
|
|
with dynamic data like 'uid' replaced by actual value (i.e. after eval)!)
|
|
|
|
-->
|
|
|
|
<record id="action_share_wizard_step1" model="ir.actions.act_window">
|
2011-12-21 16:11:35 +00:00
|
|
|
<field name="name">Share your documents</field>
|
2010-10-17 05:13:19 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">share.wizard</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="view_id" ref="share_step1_form"/>
|
|
|
|
<field name="target">new</field>
|
2011-12-21 16:11:35 +00:00
|
|
|
<field name="context">False</field>
|
2010-10-17 05:13:19 +00:00
|
|
|
</record>
|
2010-06-08 11:40:49 +00:00
|
|
|
|
2010-10-17 05:13:19 +00:00
|
|
|
</data>
|
2010-06-08 11:40:49 +00:00
|
|
|
</openerp>
|