Launchpad automatic translations update.
[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                         <notebook colspan="4">
80                                 <page string="Current Activity">
81                                 <field name="company_id" widget="selection" readonly="0" context="{'user_prefence':True}"/>
82                                 <newline/>
83                                 <separator colspan="4" string="Preferences"/>
84                         </page>
85                                 <page string="Preferences">
86                                 <field name="password" password="True" readonly="0"/>
87                                 <label colspan="4" string="Please note that you will have to logout and relog if you change your password."/>
88                                 <field name="context_lang" completion="1" readonly="0"/>
89                                 <field name="context_tz" completion="1" readonly="0" colspan="4"/>
90                                 <newline/>
91                                 <field colspan="4" name="signature" readonly="0"/>
92                                 </page>
93                     </notebook>
94                 </form>
95             </field>
96         </record>
97
98         <record id="view_users_form" model="ir.ui.view">
99             <field name="name">res.users.form</field>
100             <field name="model">res.users</field>
101             <field name="type">form</field>
102             <field name="arch" type="xml">
103                 <form string="Users">
104                     <field name="name" select="1"/>
105                     <field name="active"/>
106                     <field name="login" select="1"/>
107                     <field name="password" password="True"/>
108                     <notebook colspan="4">
109                         <page string="User">
110                             <field name="address_id" select="1"/>
111                             <field name="company_id" required="1"/>
112                             <field name="action_id" required="True"/>
113                             <field domain="[('usage','=','menu')]" name="menu_id" required="True"/>
114                             <field name="context_lang"/>
115                             <field name="context_tz"/>
116                             <field colspan="4" name="signature"/>
117                         </page>
118                         <page string="Groups">
119                             <field colspan="4" nolabel="1" name="groups_id"/>
120                         </page>
121                         <page string="Roles">
122                             <field colspan="4" nolabel="1" name="roles_id"/>
123                         </page>
124                         <page string="Companies">
125                             <field colspan="4" nolabel="1" name="company_ids" select="1"/>
126                         </page>
127                     </notebook>
128                 </form>
129             </field>
130         </record>
131         <record id="view_users_tree" model="ir.ui.view">
132             <field name="name">res.users.tree</field>
133             <field name="model">res.users</field>
134             <field name="type">tree</field>
135             <field name="arch" type="xml">
136                 <tree string="Users">
137                     <field name="name"/>
138                     <field name="login"/>
139                     <field name="company_id"/>
140                 </tree>
141             </field>
142         </record>
143
144         <record id="view_users_search" model="ir.ui.view">
145             <field name="name">res.users.search</field>
146             <field name="model">res.users</field>
147             <field name="type">search</field>
148             <field name="arch" type="xml">
149                 <search string="Users">
150                     <field name="name" select="1"/>
151                     <field name="login" select="1"/>
152                     <field name="address_id" select="1" string="Partner"/>
153                     <field name="company_ids" select="1" string="Company"/>
154                 </search>
155             </field>
156         </record>
157         <!--
158     ======================
159     Company
160     ======================
161     -->
162         <record id="view_company_form" model="ir.ui.view">
163             <field name="name">res.company.form</field>
164             <field name="model">res.company</field>
165             <field name="type">form</field>
166             <field name="arch" type="xml">
167                 <form string="Company">
168                     <field colspan="4" name="name" select="1"/>
169                     <field name="partner_id" select="1"/>
170                     <field name="parent_id" select="1"/>
171                     <notebook colspan="4">
172                         <page string="General Information">
173                             <field name="rml_header1" colspan="4"/>
174                             <field name="rml_footer1" colspan="4"/>
175                             <field name="rml_footer2" colspan="4"/>
176                             <field name="currency_id"/>
177                             <separator colspan="4" string="Your Logo - Use a size of about 450x150 pixels."/>
178                             <field colspan="4" name="logo" widget="image"/>
179                         </page>
180                             <page string="Currency">
181                                 <field name="currency_ids" colspan="4" nolabel="1"/>
182                             </page>
183                         <page string="Header/Footer">
184                             <field colspan="4" name="rml_header" nolabel="1"/>
185                         </page>
186                         <page string="Internal Header/Footer">
187                             <field colspan="4" name="rml_header2" nolabel="1"/>
188                         </page>
189                         <page string="Configuration">
190                         </page>
191                     </notebook>
192                 </form>
193             </field>
194         </record>
195         <record id="view_company_tree" model="ir.ui.view">
196             <field name="name">res.company.tree</field>
197             <field name="model">res.company</field>
198             <field name="type">tree</field>
199             <field name="field_parent">child_ids</field>
200             <field name="arch" type="xml">
201                 <tree string="Companies">
202                     <field name="name"/>
203                     <field name="partner_id"/>
204                 </tree>
205             </field>
206         </record>
207
208         <record id="view_users_configuration_form" model="ir.ui.view">
209             <field name="name">res.config.users.confirm.form</field>
210             <field name="model">res.config.users</field>
211             <field name="type">form</field>
212             <field name="inherit_id" ref="res_config_view_base"/>
213             <field name="arch" type="xml">
214               <data>
215                 <form position="attributes">
216                   <attribute name="string">Create User</attribute>
217                 </form>
218
219                 <group string="res_config_contents" position="replace">
220                   <separator string="New User" colspan="4"/>
221                   <field name="name"/>
222                   <field name="email"/>
223                   <field name="login"/>
224                   <field name="password" password="True"/>
225                   <field name="context_lang"/>
226                   <field name="context_tz"/>
227
228                   <separator string="Group" colspan="4"/>
229                   <label  align="0.0" colspan="4" string="Groups are used to define access rights on objects and the visibility of screens and menus"/>
230                   <field colspan="4" nolabel="1" name="groups_id"/>
231                 </group>
232
233                 <xpath expr='//button[@name="action_next"]'
234                        position='attributes'>
235                   <attribute name="name">action_add</attribute>
236                   <attribute name='string'>Add User</attribute>
237                   <attribute name='icon'>gtk-add</attribute>
238                 </xpath>
239
240                 <xpath expr='//button[@name="action_skip"]'
241                        position='attributes'>
242                   <!-- if this one is performed first, it transforms
243                        the action_skip into action_next, and the
244                        transformation of action_next to action_add,
245                        since it uses first-match, transforms the same
246                        button. And we end up with [add] [next] instead
247                        of [next] [add]
248
249                        Would probably be simpler to just replace both
250                        by nothing and create a pair of brand new
251                        buttons... but we'd have to handle the groups
252                        around the buttons... oh well...
253                   -->
254                   <attribute name="name">action_next</attribute>
255                   <attribute name='string'>Done</attribute>
256                   <attribute name='icon'>gtk-go-forward</attribute>
257                 </xpath>
258               </data>
259             </field>
260         </record>
261
262         <record id="action_config_user_form" model="ir.actions.act_window">
263             <field name="name">Create Users</field>
264             <field name="type">ir.actions.act_window</field>
265             <field name="res_model">res.config.users</field>
266             <field name="view_type">form</field>
267             <field name="view_mode">form</field>
268             <field name="view_id" ref="view_users_configuration_form"/>
269             <field name="target">new</field>
270         </record>
271
272         <record id="view_confirm_simple_view_form" model="ir.ui.view">
273             <field name="name">res.users.confirm.simple_view</field>
274             <field name="model">res.config.view</field>
275             <field name="type">form</field>
276             <field name="inherit_id" ref="res_config_view_base"/>
277             <field name="arch" type="xml">
278               <data>
279                 <form position="attributes">
280                   <attribute name="string">Select your Interface</attribute>
281                 </form>
282
283                 <group string="res_config_contents" position="replace">
284                   <label colspan="4" align="0.0" string="Choose between the simplified interface and the extended one."/>
285                   <newline/>
286                   <label colspan="4" align="0.0" string="If you are testing OpenERP or using it for the first time, we suggest you use the simplified interface. It has less options and fields but is easier to understand."/>
287                   <newline/>
288                   <label colspan="4" align="0.0" string="You will be able to switch to the extended interface later."/>
289                   <separator string="Choose Your Interface" colspan="4"/>
290                   <field colspan="2" name="view" nolabel="1"/>
291                 </group>
292                 <xpath expr='//button[@name="action_skip"]' position='replace'/>
293                 <xpath expr='//button[@name="action_next"]' position='attributes'>
294                   <attribute name='string'>Set</attribute>
295                 </xpath>
296               </data>
297             </field>
298         </record>
299
300         <record id="action_config_simple_view_form" model="ir.actions.act_window">
301             <field name="name">Select Your Interface</field>
302             <field name="type">ir.actions.act_window</field>
303             <field name="res_model">res.config.view</field>
304             <field name="view_type">form</field>
305             <field name="view_id" ref="view_confirm_simple_view_form"/>
306             <field name="view_mode">form</field>
307             <field name="target">new</field>
308         </record>
309
310
311
312         <!-- register on configuratuion -->
313
314     </data>
315     <data noupdate="1">
316         <record id="config_wizard_step_user" model="ir.actions.todo">
317             <field name="action_id" ref="action_config_user_form"/>
318             <field name="sequence">10</field>
319         </record>
320
321         <record id="config_wizard_simple_view" model="ir.actions.todo">
322             <field name="action_id" ref="action_config_simple_view_form"/>
323             <field name="sequence">1</field>
324         </record>
325
326     </data>
327 </openerp>