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">
|
2011-06-01 13:06:55 +00:00
|
|
|
<form string="Sharing: preparation">
|
2010-10-17 05:13:19 +00:00
|
|
|
<separator colspan="4"
|
|
|
|
string="Please select the action that opens the screen containing the data you want to share."/>
|
|
|
|
<field name="action_id" colspan="4"/>
|
|
|
|
<separator colspan="4"
|
|
|
|
string="Optionally, you may specify an additional domain restriction that will be applied to the shared data."/>
|
|
|
|
<field name="domain"/>
|
|
|
|
<separator colspan="4"/>
|
|
|
|
<group colspan="4">
|
|
|
|
<button special="cancel" string="Cancel" icon='gtk-cancel'/>
|
|
|
|
<button name="go_step_1" string="Next" colspan="1" type="object" icon="gtk-go-forward"/>
|
|
|
|
</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">
|
2011-12-21 16:11:35 +00:00
|
|
|
<form>
|
2011-12-18 15:43:32 +00:00
|
|
|
<field name="user_type" invisible="1"/>
|
2011-12-21 16:11:35 +00:00
|
|
|
<group colspan="4" name="emails_group" attrs="{'invisible':[('user_type', '!=', 'emails')]}">
|
2011-06-14 11:07:18 +00:00
|
|
|
<separator colspan="4" string="Share with these people (one e-mail per line)"/>
|
2011-06-19 17:00:00 +00:00
|
|
|
<field colspan="4" nolabel="1" name="new_users" attrs="{'required':[('user_type','=','emails')]}"/>
|
2010-10-17 05:13:19 +00:00
|
|
|
</group>
|
2011-12-21 16:11:35 +00:00
|
|
|
<group colspan="4" col="4" attrs="{'invisible':[('user_type', '=', 'embedded')]}">
|
2011-12-18 15:43:32 +00:00
|
|
|
<separator colspan="4" string="Optional: include a personal message"/>
|
2011-06-14 11:07:18 +00:00
|
|
|
<field name="message" colspan="4" nolabel="1"/>
|
|
|
|
</group>
|
2011-12-18 15:43:32 +00:00
|
|
|
<separator colspan="4" string="Sharing Options"/>
|
2011-06-14 11:07:18 +00:00
|
|
|
<group colspan="4" col="4">
|
|
|
|
<field name="name" colspan="4"/>
|
|
|
|
<field name="access_mode" colspan="4"/>
|
2011-04-08 13:36:08 +00:00
|
|
|
</group>
|
2010-10-17 05:13:19 +00:00
|
|
|
<separator colspan="4"/>
|
|
|
|
<group colspan="4">
|
|
|
|
<button special="cancel" string="Cancel" icon='gtk-cancel'/>
|
2011-06-01 08:10:49 +00:00
|
|
|
<button name="go_step_2" string="Share" colspan="1" type="object" icon="gtk-go-forward"/>
|
2010-10-17 05:13:19 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
2010-06-08 11:40:49 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<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">
|
2011-06-14 11:07:18 +00:00
|
|
|
<form string="Access granted!">
|
2011-12-01 16:00:40 +00:00
|
|
|
<field name="user_type" invisible="1"/>
|
|
|
|
<field name="access_mode" invisible="1"/>
|
|
|
|
<group colspan="4" col="1" attrs="{'invisible':[('user_type','=','embedded')]}">
|
|
|
|
<separator string="An e-mail notification with instructions has been sent to the following people:"/>
|
|
|
|
<field name="result_line_ids" nolabel="1" mode="tree">
|
2010-10-17 05:13:19 +00:00
|
|
|
<tree string="Summary">
|
|
|
|
<field name="login"/>
|
|
|
|
</tree>
|
|
|
|
<form string="Access info">
|
|
|
|
<field name="login"/>
|
|
|
|
</form>
|
2011-12-01 16:00:40 +00:00
|
|
|
</field>
|
|
|
|
</group>
|
|
|
|
<group colspan="4" col="1" attrs="{'invisible':[('user_type','!=','embedded')]}">
|
2011-12-18 15:48:07 +00:00
|
|
|
<separator string="Use this link"/>
|
2011-12-19 16:38:36 +00:00
|
|
|
<field name="embed_url" nolabel="1"/>
|
2011-12-18 15:48:07 +00:00
|
|
|
<separator string="Or insert the following code where you want to embed your documents"/>
|
2011-12-01 16:00:40 +00:00
|
|
|
<group col="4" string="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>
|
|
|
|
<field name="embed_code" nolabel="1"/>
|
|
|
|
</group>
|
|
|
|
|
2010-10-17 05:13:19 +00:00
|
|
|
<separator colspan="4"/>
|
|
|
|
<group colspan="4">
|
|
|
|
<button special="cancel" string="Close" icon='gtk-ok'/>
|
|
|
|
</group>
|
|
|
|
</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>
|