41797f756f593d680259337cb3820bc2aefc3ab7
[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                             <group colspan="2" col="2">
117                                 <separator string="Signature" colspan="2"/>
118                                 <field colspan="2" name="signature" nolabel="1"/>
119                             </group>
120                             <group colspan="2" col="2">
121                                 <separator string="Access Rights (groups)" colspan="2"/>
122                                 <field colspan="2" nolabel="1" name="groups_id"/>
123                             </group>
124                         </page>
125                         <page string="Roles">
126                             <field colspan="4" nolabel="1" name="roles_id"/>
127                         </page>
128                         <page string="Companies">
129                             <field colspan="4" nolabel="1" name="company_ids" select="1"/>
130                         </page>
131                     </notebook>
132                 </form>
133             </field>
134         </record>
135         <record id="view_users_tree" model="ir.ui.view">
136             <field name="name">res.users.tree</field>
137             <field name="model">res.users</field>
138             <field name="type">tree</field>
139             <field name="arch" type="xml">
140                 <tree string="Users">
141                     <field name="name"/>
142                     <field name="login"/>
143                     <field name="company_id"/>
144                 </tree>
145             </field>
146         </record>
147
148         <record id="view_users_search" model="ir.ui.view">
149             <field name="name">res.users.search</field>
150             <field name="model">res.users</field>
151             <field name="type">search</field>
152             <field name="arch" type="xml">
153                 <search string="Users">
154                     <field name="name" select="1"/>
155                     <field name="login" select="1"/>
156                     <field name="address_id" select="1" string="Partner"/>
157                     <field name="company_ids" select="1" string="Company"/>
158                 </search>
159             </field>
160         </record>
161         <!--
162     ======================
163     Company
164     ======================
165     -->
166         <record id="view_company_form" model="ir.ui.view">
167             <field name="name">res.company.form</field>
168             <field name="model">res.company</field>
169             <field name="type">form</field>
170             <field name="arch" type="xml">
171                 <form string="Company">
172                     <group colspan="4" col="6">
173                         <field colspan="4" name="name" select="1"/>
174                         <field name="partner_id" select="1"/>
175                         <field name="parent_id" select="1" groups="base.group_multi_company"/>
176                     </group>
177                     <notebook colspan="4">
178                         <page string="General Information">
179                             <field name="rml_header1" colspan="4"/>
180                             <field name="rml_footer1" colspan="4"/>
181                             <field name="rml_footer2" colspan="4"/>
182                             <field name="currency_id"/>
183                             <separator colspan="4" string="Your Logo - Use a size of about 450x150 pixels."/>
184                             <field colspan="4" name="logo" widget="image"/>
185                         </page>
186                         <page string="Header/Footer" groups="base.group_extended">
187                             <field colspan="4" name="rml_header" nolabel="1"/>
188                         </page>
189                         <page string="Internal Header/Footer" groups="base.group_extended">
190                             <field colspan="4" name="rml_header2" nolabel="1"/>
191                         </page>
192                         <page string="Configuration">
193                         </page>
194                     </notebook>
195                 </form>
196             </field>
197         </record>
198         <record id="view_company_tree" model="ir.ui.view">
199             <field name="name">res.company.tree</field>
200             <field name="model">res.company</field>
201             <field name="type">tree</field>
202             <field name="field_parent">child_ids</field>
203             <field name="arch" type="xml">
204                 <tree string="Companies">
205                     <field name="name"/>
206                     <field name="partner_id"/>
207                 </tree>
208             </field>
209         </record>
210
211         <record id="view_users_configuration_form" model="ir.ui.view">
212             <field name="name">res.config.users.confirm.form</field>
213             <field name="model">res.config.users</field>
214             <field name="type">form</field>
215             <field name="inherit_id" ref="res_config_view_base"/>
216             <field name="arch" type="xml">
217               <data>
218                 <form position="attributes">
219                   <attribute name="string">Create User</attribute>
220                 </form>
221
222                 <group string="res_config_contents" position="replace">
223                   <separator string="New User" colspan="4"/>
224                   <field name="name"/>
225                   <field name="email"/>
226                   <field name="login"/>
227                   <field name="password" password="True"/>
228                   <field name="context_lang"/>
229                   <field name="context_tz"/>
230
231                   <separator string="Group" colspan="4"/>
232                   <label  align="0.0" colspan="4" string="Groups are used to define access rights on objects and the visibility of screens and menus"/>
233                   <field colspan="4" nolabel="1" name="groups_id"/>
234                 </group>
235
236                 <xpath expr='//button[@name="action_next"]'
237                        position='attributes'>
238                   <attribute name="name">action_add</attribute>
239                   <attribute name='string'>Add User</attribute>
240                   <attribute name='icon'>gtk-add</attribute>
241                 </xpath>
242
243                 <xpath expr='//button[@name="action_skip"]'
244                        position='attributes'>
245                   <!-- if this one is performed first, it transforms
246                        the action_skip into action_next, and the
247                        transformation of action_next to action_add,
248                        since it uses first-match, transforms the same
249                        button. And we end up with [add] [next] instead
250                        of [next] [add]
251
252                        Would probably be simpler to just replace both
253                        by nothing and create a pair of brand new
254                        buttons... but we'd have to handle the groups
255                        around the buttons... oh well...
256                   -->
257                   <attribute name="name">action_next</attribute>
258                   <attribute name='string'>Done</attribute>
259                   <attribute name='icon'>gtk-go-forward</attribute>
260                 </xpath>
261               </data>
262             </field>
263         </record>
264
265         <record id="action_config_user_form" model="ir.actions.act_window">
266             <field name="name">Create Users</field>
267             <field name="type">ir.actions.act_window</field>
268             <field name="res_model">res.config.users</field>
269             <field name="view_type">form</field>
270             <field name="view_mode">form</field>
271             <field name="view_id" ref="view_users_configuration_form"/>
272             <field name="target">new</field>
273         </record>
274
275         <record id="view_confirm_simple_view_form" model="ir.ui.view">
276             <field name="name">res.users.confirm.simple_view</field>
277             <field name="model">res.config.view</field>
278             <field name="type">form</field>
279             <field name="inherit_id" ref="res_config_view_base"/>
280             <field name="arch" type="xml">
281               <data>
282                 <form position="attributes">
283                   <attribute name="string">Choose Your Interface</attribute>
284                 </form>
285                                 <xpath expr="//label[@string='description']"
286                          position="attributes">
287                     <attribute name="string">Choose between the simplified interface and the extended one.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.You will be able to switch to the extended interface later.</attribute>
288                   </xpath>
289                   <xpath expr='//separator[@string="title"]' position='attributes'>
290                           <attribute name='string'>Choose Your Interface</attribute>
291                   </xpath>
292                   <xpath expr='//separator[@string="vsep"]' position='attributes'>
293                           <attribute name='string'></attribute>
294                       </xpath>
295                <group string="res_config_contents" position="replace">
296                         <group colspan="5">
297                                 <field colspan="5" name="view" nolabel="1"/>
298                                         </group>
299                 </group>
300                 <xpath expr='//button[@name="action_skip"]' position='replace'/>
301                 <xpath expr='//button[@name="action_next"]' position='attributes'>
302                   <attribute name='string'>Set</attribute>
303                 </xpath>
304               </data>
305             </field>
306         </record>
307
308         <record id="action_config_simple_view_form" model="ir.actions.act_window">
309             <field name="name">Select Your Interface</field>
310             <field name="type">ir.actions.act_window</field>
311             <field name="res_model">res.config.view</field>
312             <field name="view_type">form</field>
313             <field name="view_id" ref="view_confirm_simple_view_form"/>
314             <field name="view_mode">form</field>
315             <field name="target">new</field>
316         </record>
317
318         <record id="config_wizard_step_user" model="ir.actions.todo">
319             <field name="action_id" ref="action_config_user_form"/>
320             <field name="sequence">10</field>
321             <field name="restart">never</field>
322             <field name="state">done</field>
323         </record>
324         <record id="config_wizard_simple_view" model="ir.actions.todo">
325             <field name="action_id" ref="action_config_simple_view_form"/>
326             <field name="sequence">1</field>
327         </record>
328
329     </data>
330 </openerp>