merge
[odoo/odoo.git] / bin / addons / base / base_update.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <!--
5     ======================
6     Languages
7     ======================
8     -->
9         <menuitem id="next_id_2" name="User Interface" parent="base.menu_custom"/>
10
11         <!--
12     ======================
13     Groups
14     ======================
15     -->
16         <record id="view_groups_form" model="ir.ui.view">
17             <field name="name">res.groups.form</field>
18             <field name="model">res.groups</field>
19             <field name="type">form</field>
20             <field name="arch" type="xml">
21                 <form string="Groups">
22                     <field colspan="4" name="name" select="1"/>
23                     <notebook colspan="4">
24                         <page string="Users">
25                             <field colspan="4" name="users" nolabel="1"/>
26                         </page>
27                         <page string="Menus">
28                             <field colspan="4" name="menu_access" nolabel="1"/>
29                         </page>
30                         <page string="Access Rights">
31                             <field colspan="4" name="model_access" nolabel="1">
32                                 <tree string="Access Rules" editable="top">
33                                     <field name="model_id"/>
34                                     <field name="perm_read"/>
35                                     <field name="perm_write"/>
36                                     <field name="perm_create"/>
37                                     <field name="perm_unlink"/>
38                                     <field name="name"/>
39                                 </tree>
40                                 <form string="Access Controls">
41                                     <field colspan="4" name="name" select="1"/>
42                                     <field name="model_id" select="1"/>
43                                     <newline/>
44                                     <field name="perm_read"/>
45                                     <field name="perm_write"/>
46                                     <field name="perm_create"/>
47                                     <field name="perm_unlink"/>
48                                 </form>
49                             </field>
50                         </page>
51                         <page string="Rules">
52                             <field colspan="4" name="rule_groups" nolabel="1">
53                                 <tree string="Rules">
54                                     <field name="name"/>
55                                     <field name="model_id"/>
56                                     <field name="global"/>
57                                 </tree>
58                             </field>
59                         </page><page string="Notes">
60                             <field colspan="4" name="comment" nolabel="1"/>
61                         </page>
62                     </notebook>
63                 </form>
64             </field>
65         </record>
66
67         <!--
68     ======================
69     Users
70     ======================
71     -->
72         <record id="view_users_form_simple_modif" model="ir.ui.view">
73             <field name="name">res.users.form.modif</field>
74             <field name="model">res.users</field>
75             <field name="type">form</field>
76             <field eval="18" name="priority"/>
77             <field name="arch" type="xml">
78                 <form string="Users">
79                     <field name="password" password="True" readonly="0"/>
80                     <label colspan="4" string="Please note that you will have to logout and relog if you change your password."/>
81                     <field name="company_id" widget="selection"/>
82                     <field name="context_lang" completion="1" readonly="0"/>
83                     <field name="context_tz" completion="1" readonly="0" colspan="4"/>
84                     <newline/>
85                     <field colspan="4" name="signature" readonly="0"/>
86                 </form>
87             </field>
88         </record>
89
90         <record id="view_users_form" model="ir.ui.view">
91             <field name="name">res.users.form</field>
92             <field name="model">res.users</field>
93             <field name="type">form</field>
94             <field name="arch" type="xml">
95                 <form string="Users">
96                     <field name="name" select="1"/>
97                     <field name="active"/>
98                     <field name="login" select="1"/>
99                     <field name="password" password="True"/>
100                     <notebook colspan="4">
101                         <page string="User">
102                             <field name="address_id" select="1"/>
103                             <field name="company_id" required="1"/>
104                             <field name="action_id" required="True"/>
105                             <field domain="[('usage','=','menu')]" name="menu_id" required="True"/>
106                             <field name="context_lang"/>
107                             <field name="context_tz"/>
108                             <field colspan="4" name="signature"/>
109                         </page>
110                         <page string="Groups">
111                             <field colspan="4" nolabel="1" name="groups_id"/>
112                         </page>
113                         <page string="Roles">
114                             <field colspan="4" nolabel="1" name="roles_id"/>
115                         </page>
116                         <page string="Accepted Companies">
117                             <field colspan="4" nolabel="1" name="company_ids" select="1"/>
118                         </page>
119                     </notebook>
120                 </form>
121             </field>
122         </record>
123         <record id="view_users_tree" model="ir.ui.view">
124             <field name="name">res.users.tree</field>
125             <field name="model">res.users</field>
126             <field name="type">tree</field>
127             <field name="arch" type="xml">
128                 <tree string="Users">
129                     <field name="name"/>
130                     <field name="login"/>
131                     <field name="company_id"/>
132                 </tree>
133             </field>
134         </record>
135
136         <record id="view_users_search" model="ir.ui.view">
137             <field name="name">res.users.search</field>
138             <field name="model">res.users</field>
139             <field name="type">search</field>
140             <field name="arch" type="xml">
141                 <search string="Users">
142                     <field name="name" select="1"/>
143                     <field name="login" select="1"/>
144                     <field name="address_id" select="1" string="Partner"/>
145                     <field name="company_ids" select="1" string="Company"/>
146                 </search>
147             </field>
148         </record>
149         <!--
150     ======================
151     Company
152     ======================
153     -->
154         <record id="view_company_form" model="ir.ui.view">
155             <field name="name">res.company.form</field>
156             <field name="model">res.company</field>
157             <field name="type">form</field>
158             <field name="arch" type="xml">
159                 <form string="Company">
160                     <field colspan="4" name="name" select="1"/>
161                     <field name="partner_id" select="1"/>
162                     <field name="parent_id" select="1"/>
163                     <notebook colspan="4">
164                         <page string="General Information">
165                             <field name="rml_header1" colspan="4"/>
166                             <field name="rml_footer1" colspan="4"/>
167                             <field name="rml_footer2" colspan="4"/>
168                             <field name="currency_id"/>
169                             <separator colspan="4" string="Your Logo - Use a size of about 450x150 pixels."/>
170                             <field colspan="4" name="logo" widget="image"/>
171                         </page>
172                             <page string="Currency">
173                                 <field name="currency_ids" colspan="4" nolabel="1"/>
174                             </page>
175                         <page string="Header/Footer">
176                             <field colspan="4" name="rml_header" nolabel="1"/>
177                         </page>
178                         <page string="Internal Header/Footer">
179                             <field colspan="4" name="rml_header2" nolabel="1"/>
180                         </page>
181                         <page string="Configuration">
182                         </page>
183                     </notebook>
184                 </form>
185             </field>
186         </record>
187         <record id="view_company_tree" model="ir.ui.view">
188             <field name="name">res.company.tree</field>
189             <field name="model">res.company</field>
190             <field name="type">tree</field>
191             <field name="field_parent">child_ids</field>
192             <field name="arch" type="xml">
193                 <tree string="Companies">
194                     <field name="name"/>
195                     <field name="partner_id"/>
196                 </tree>
197             </field>
198         </record>
199
200         <record id="view_users_configuration_form" model="ir.ui.view">
201             <field name="name">res.users.confirm.form</field>
202             <field name="model">res.users</field>
203             <field name="type">form</field>
204             <field name="arch" type="xml">
205                 <form string="Configure User">
206                     <separator string="Define New Users" colspan="4"/>
207                     <field name="name" select="1"/>
208                     <field name="active" select="1"/>
209                     <field name="login" select="1"/>
210                     <field name="password" password="True"/>
211                     <notebook colspan="4">
212                         <page string="User">
213                             <field name="address_id"/>
214                             <field name="company_id" required="1"/>
215                             <field name="action_id" required="True"/>
216                             <field domain="[('usage','=','menu')]" name="menu_id" required="True"/>
217                             <field name="context_lang"/>
218                             <field name="context_tz"/>
219                             <field colspan="4" name="signature"/>
220                         </page>
221                         <page string="Groups">
222                             <label string="Groups are used to defined access rights on each screen and menu." align="0.0" colspan="4"/>
223                             <field colspan="4" nolabel="1" name="groups_id"/>
224                         </page>
225                         <page string="Roles">
226                             <label string="Roles are used to defined available actions, provided by workflows." align="0.0" colspan="4"/>
227                             <field colspan="4" nolabel="1" name="roles_id"/>
228                         </page>
229                     </notebook>
230                     <label string="" colspan="2"/>
231                     <group col="2" colspan="2">
232                         <button icon='gtk-cancel' special="cancel" name="action_next" type='object' string='Skip'/>
233                         <button name='action_new' icon='gtk-ok' type='object' string='Add User'/>
234                     </group>
235                 </form>
236             </field>
237         </record>
238
239         <record id="action_config_user_form" model="ir.actions.act_window">
240             <field name="name">Configure User</field>
241             <field name="type">ir.actions.act_window</field>
242             <field name="res_model">res.users</field>
243             <field name="view_type">form</field>
244             <field name="view_mode">form</field>
245             <field name="view_id" ref="view_users_configuration_form"/>
246             <field name="target">new</field>
247         </record>
248
249         <record id="view_confirm_simple_view_form" model="ir.ui.view">
250             <field name="name">res.users.confirm.simple_view</field>
251             <field name="model">res.config.view</field>
252             <field name="type">form</field>
253             <field name="arch" type="xml">
254                 <form string="Configure simple view">
255                     <separator string="Choose Your Mode" colspan="4"/>
256                     <field colspan="2" name="view"/>
257                     <label string="Choose the simplified interface if you are testing OpenERP for the first time. Less used options or fields are automatically hidden. You will be able to change this, later, through the Administration menu." colspan="4" align="0.0"/>
258                     <newline/>
259                     <separator string="" colspan="4"/>
260                     <label string="" colspan="2"/>
261                     <group colspan="2" col="1">
262                         <button icon="gtk-ok" name="action_set" string="Set" type="object"/>
263                     </group>
264                 </form>
265             </field>
266         </record>
267
268         <record id="action_config_simple_view_form" model="ir.actions.act_window">
269             <field name="name">Configure Simple View</field>
270             <field name="type">ir.actions.act_window</field>
271             <field name="res_model">res.config.view</field>
272             <field name="view_type">form</field>
273             <field name="view_mode">form</field>
274             <field name="target">new</field>
275         </record>
276
277
278
279         <!-- register on configuratuion -->
280
281     </data>
282     <data noupdate="1">
283         <record id="config_wizard_step_user" model="ir.actions.todo">
284             <field name="name">Create User</field>
285             <field name="note">Create your users.
286 You will be able to assign groups to users. Groups define the access rights of each users on the different objects of the system.
287             </field>
288             <field name="action_id" ref="action_config_user_form"/>
289             <field name="sequence">10</field>
290         </record>
291
292         <record id="config_wizard_simple_view" model="ir.actions.todo">
293             <field name="name">Select Your Interface</field>
294             <field name="note">Choose between the "Simplified Interface" or the extended one.
295 If you are testing or using OpenERP for the first time, we suggest you to use
296 the simplified interface, which has less options and fields but is easier to
297 understand. You will be able to switch to the extended view later.
298             </field>
299             <field name="action_id" ref="action_config_simple_view_form"/>
300             <field name="sequence">5</field>
301         </record>
302
303     </data>
304 </openerp>