[FIX] share: login value and dbname key (typo) in the codepath handling sharing to...
[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="type">form</field>
9             <field name="arch" type="xml">
10                 <form string="Share wizard: step 0">
11                     <separator colspan="4"
12                         string="Please select the action that opens the screen containing the data you want to share."/>
13                     <field name="action_id" colspan="4"/>
14                     <separator colspan="4"
15                         string="Optionally, you may specify an additional domain restriction that will be applied to the shared data."/>
16                     <field name="domain"/>
17                     <separator colspan="4"/>
18                     <group colspan="4">
19                         <button special="cancel" string="Cancel" icon='gtk-cancel'/>
20                         <button name="go_step_1" string="Next" colspan="1" type="object" icon="gtk-go-forward"/>
21                     </group>
22                 </form>
23             </field>
24         </record>
25
26         <record id="share_step1_form" model="ir.ui.view">
27             <field name="name">share.step1.form</field>
28             <field name="model">share.wizard</field>
29             <field name="type">form</field>
30             <field name="arch" type="xml">
31                 <form string="Share wizard: step 1">
32                     <separator colspan="4" string="Who would you want to share this data with?"/>
33                     <field name="user_type"/>
34                     <group colspan="4" attrs="{'invisible':[('user_type','!=','existing')]}">
35                         <separator colspan="4" string="Existing External Users"/>
36                         <field colspan="4" nolabel="1" name="user_ids" mode="tree">
37                             <tree editable="bottom" string="">
38                                 <field name="user_id"/>
39                             </tree>
40                         </field>
41                     </group>
42                     <group colspan="4" attrs="{'invisible':[('user_type','!=','new')]}">
43                         <separator colspan="4" string="New Users (please provide one e-mail address per line below)"/>
44                         <field colspan="4" nolabel="1" name="new_users"/>
45                     </group>
46                     <separator colspan="4" string="Select the desired shared access mode:"/>
47                     <group colspan="4">
48                         <field name="access_mode"/>
49                     </group>
50                     <separator colspan="4"/>
51                     <group colspan="4">
52                         <button special="cancel" string="Cancel" icon='gtk-cancel'/>
53                         <button name="go_step_2" string="Finish" colspan="1" type="object" icon="gtk-go-forward"/>
54                     </group>
55                 </form>
56             </field>
57         </record>
58
59         <record id="share_step2_form" model="ir.ui.view">
60             <field name="name">share.step2.form</field>
61             <field name="model">share.wizard</field>
62             <field name="type">form</field>
63             <field name="arch" type="xml">
64                 <form string="Share wizard: step 2">
65                     <separator colspan="4" string="Congratulations, you have successfully setup a new shared access!"/>
66                     <label colspan="4" string="Here is a summary of the access points you have just created:"/>
67                     <field name="result_line_ids" nolabel="1" colspan="4" mode="tree">
68                         <tree string="Summary">
69                             <field name="login"/>
70                             <field name="password"/>
71                             <field name="share_url"/>
72                         </tree>
73                         <form string="Access info">
74                             <field name="login"/>
75                             <field name="password"/>
76                             <field name="share_url" colspan="4"/>
77                         </form>
78                     </field>
79                     <field colspan="4" name="share_root_url"/>
80                     <separator colspan="4"/>
81                     <group colspan="4">
82                         <button special="cancel" string="Close" icon='gtk-ok'/>
83                         <button name="send_emails" string="Send Email Notification(s)" colspan="1" type="object" icon="gtk-go-forward"/>
84                     </group>
85                 </form>
86             </field>
87         </record>
88
89         <!--  action for manual launch from menuitem. context may contain:
90                     - 'action_id' (id of action)
91                     - 'domain' (string expression for full domain to apply as sent to server, 
92                                with dynamic data like 'uid' replaced by actual value (i.e. after eval)!)
93                     - 'share_root_url' : URL for direct access to share page (may include %(login)s and %(password)s placeholders)
94          -->
95         <record id="action_share_wizard" model="ir.actions.act_window">
96             <field name="name">Share Wizard</field>
97             <field name="type">ir.actions.act_window</field>
98             <field name="res_model">share.wizard</field>
99             <field name="view_type">form</field>
100             <field name="view_mode">form</field>
101             <field name="view_id" ref="share_step0_form"/>
102             <field name="target">new</field>
103         </record>
104
105         <!--  action for direct launch from client widget with context providing:
106                     - 'action_id' (id of action)
107                     - 'domain' (string expression for full domain to apply as sent to server, 
108                                with dynamic data like 'uid' replaced by actual value (i.e. after eval)!)
109                     - 'share_root_url' : URL for direct access to share page (may include %(login)s and %(password)s placeholders)
110          -->
111         <record id="action_share_wizard_step1" 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_step1_form"/>
118             <field name="target">new</field>
119         </record>
120
121         <!--  temporarily under Low-Level-Actions  -->
122         <menuitem action="action_share_wizard" id="menu_action_share_wizard" parent="base.next_id_4" groups="group_share_user" icon="terp-rating-rated"/>
123
124     </data>
125 </openerp>