1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="share_step0_form" model="ir.ui.view">
6 <field name="name">share.step0.form</field>
7 <field name="model">share.wizard</field>
8 <field name="arch" type="xml">
9 <form string="Sharing: preparation" version="7.0">
11 string="Please select the action that opens the screen containing the data you want to share."/>
13 <field name="action_id"/>
15 string="Optionally, you may specify an additional domain restriction that will be applied to the shared data."/>
16 <field name="domain"/>
19 <button name="go_step_1" string="Next" type="object" class="oe_highlight"/>
21 <button string="Cancel" class="oe_link" special="cancel" />
27 <record id="share_step1_form" model="ir.ui.view">
28 <field name="name">share.step1.form</field>
29 <field name="model">share.wizard</field>
30 <field name="arch" type="xml">
31 <form string="Configuration" version="7.0">
33 <field name="user_type" invisible="1"/>
34 <field name="invite" invisible="1"/>
37 <group colspan="4" name="emails_group" attrs="{'invisible':['|', ('user_type', '!=', 'emails'), ('invite', '=', True)]}"
38 string="Share with these People (one email per line)">
39 <field nolabel="1" name="new_users" attrs="{'required':[('user_type','=','emails'), ('invite', '!=', True)]}"/>
41 <group colspan="4" name="email_lines" attrs="{'invisible':['|', ('invite', '!=', True), ('user_type', '!=', 'emails')]}"
42 string="Share with these People (one email per line)">
43 <field name="email_1"/>
44 <field name="email_2"/>
45 <field name="email_3"/>
47 <group colspan="4" attrs="{'invisible':[('user_type', '=', 'embedded')]}"
48 string="Include an Optional Personal Message">
49 <field name="message" colspan="2" nolabel="1"/>
51 <group attrs="{'invisible':[('invite', '=', True)]}" string="Sharing Options">
53 <field name="access_mode"/>
57 <button name="go_step_2" string="Share" type="object" class="oe_highlight"/>
59 <button string="Cancel" class="oe_link" special="cancel" />
65 <record id="share_step2_form" model="ir.ui.view">
66 <field name="name">share.step2.form</field>
67 <field name="model">share.wizard</field>
68 <field name="arch" type="xml">
69 <form string="Access granted!" version="7.0">
70 <group attrs="{'invisible':[('user_type','=','embedded')]}"
71 string="An email notification with instructions has been sent to the following people:">
72 <field name="result_line_ids" nolabel="1" mode="tree">
73 <tree string="Summary">
76 <form string="Access info" version="7.0">
83 <group colspan="4" col="1" attrs="{'invisible':[('user_type','!=','embedded')]}">
84 <group string="Use this link">
85 <field name="embed_url"/>
87 <group string="Or insert the following code where you want to embed your documents">
88 <field name="embed_code"/>
90 <group string="Embedded code options">
91 <field name="embed_option_title" on_change="onchange_embed_options(embed_option_title, embed_option_search)"/>
92 <field name="embed_option_search" on_change="onchange_embed_options(embed_option_title, embed_option_search)"
93 attrs="{'invisible':[('access_mode','=','readonly')]}"/>
97 <field name="user_type" invisible="1"/>
98 <field name="access_mode" invisible="1"/>
99 <button string="Close" class="oe_highlight" special="cancel" />
106 <!-- action for manual launch from menuitem. context may contain:
107 - 'action_id' (id of action)
108 - 'domain' (string expression for full domain to apply as sent to server,
109 with dynamic data like 'uid' replaced by actual value (i.e. after eval)!)
111 <record id="action_share_wizard" model="ir.actions.act_window">
112 <field name="name">Share Wizard</field>
113 <field name="type">ir.actions.act_window</field>
114 <field name="res_model">share.wizard</field>
115 <field name="view_type">form</field>
116 <field name="view_mode">form</field>
117 <field name="view_id" ref="share_step0_form"/>
118 <field name="target">new</field>
121 <!-- action for direct launch from client widget with context providing:
122 - 'action_id' (id of action)
123 - 'domain' (string expression for full domain to apply as sent to server,
124 with dynamic data like 'uid' replaced by actual value (i.e. after eval)!)
126 <record id="action_share_wizard_step1" model="ir.actions.act_window">
127 <field name="name">Share your documents</field>
128 <field name="type">ir.actions.act_window</field>
129 <field name="res_model">share.wizard</field>
130 <field name="view_type">form</field>
131 <field name="view_mode">form</field>
132 <field name="view_id" ref="share_step1_form"/>
133 <field name="target">new</field>
134 <field name="context">False</field>