[IMP] report; minimal layout is now a qweb template, allowing users to customize...
[odoo/odoo.git] / addons / share / wizard / share_wizard_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
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">
10                     <separator
11                         string="Please select the action that opens the screen containing the data you want to share."/>
12                     <group>
13                         <field name="action_id"/>
14                         <label colspan="2"
15                             string="Optionally, you may specify an additional domain restriction that will be applied to the shared data."/>
16                         <field name="domain"/>
17                     </group>
18                     <footer>
19                         <button name="go_step_1" string="Next" type="object" class="oe_highlight"/>
20                         or
21                         <button string="Cancel" class="oe_link" special="cancel" />
22                     </footer>
23                 </form>
24             </field>
25         </record>
26
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">
32                     <group>
33                         <field name="user_type" invisible="1"/>
34                         <field name="invite" invisible="1"/>
35                     </group>
36                     <group>
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)]}"/>
40                         </group>
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"/>
46                         </group>
47                         <group colspan="4" attrs="{'invisible':[('user_type', '=', 'embedded')]}"
48                             string="Include an Optional Personal Message">
49                             <field name="message" colspan="2" nolabel="1"/>
50                         </group>
51                         <group attrs="{'invisible':[('invite', '=', True)]}" string="Sharing Options">
52                             <field name="name"/>
53                             <field name="access_mode"/>
54                         </group>
55                     </group>
56                     <footer>
57                         <button name="go_step_2" string="Share" type="object" class="oe_highlight"/>
58                         or
59                         <button string="Cancel" class="oe_link" special="cancel" />
60                     </footer>
61                 </form>
62             </field>
63         </record>
64
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">
74                                 <field name="login"/>
75                             </tree>
76                             <form string="Access info" version="7.0">
77                                 <group>
78                                     <field name="login"/>
79                                 </group>
80                             </form>
81                         </field>
82                     </group>
83                     <group colspan="4" col="1" attrs="{'invisible':[('user_type','!=','embedded')]}">
84                         <group string="Use this link">
85                             <field name="embed_url"/>
86                         </group>
87                         <group string="Or insert the following code where you want to embed your documents">
88                             <field name="embed_code"/>
89                         </group>
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')]}"/>
94                         </group>
95                     </group>
96                     <footer>
97                         <field name="user_type" invisible="1"/>
98                         <field name="access_mode" invisible="1"/>
99                         <button string="Close" class="oe_highlight" special="cancel" />
100                     </footer>
101
102                 </form>
103             </field>
104         </record>
105
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)!)
110          -->
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>
119         </record>
120
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)!)
125          -->
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>
135         </record>
136
137     </data>
138 </openerp>