1 <?xml version="1.0" encoding="utf-8"?>
9 <menuitem id="next_id_2" name="User Interface" parent="base.menu_custom" groups="base.group_extended"/>
12 ======================
14 ======================
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 name="name" select="1"/>
23 <notebook colspan="4">
25 <field colspan="4" name="users" nolabel="1"/>
28 <field colspan="4" name="menu_access" nolabel="1"/>
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"/>
40 <form string="Access Controls">
41 <field colspan="4" name="name" select="1"/>
42 <field name="model_id" select="1"/>
44 <field name="perm_read"/>
45 <field name="perm_write"/>
46 <field name="perm_create"/>
47 <field name="perm_unlink"/>
52 <field colspan="4" name="rule_groups" nolabel="1">
55 <field name="model_id"/>
56 <field name="global"/>
59 </page><page string="Notes">
60 <field colspan="4" name="comment" nolabel="1"/>
68 ======================
70 ======================
73 <record id="view_users_form_simple_modif" model="ir.ui.view">
74 <field name="name">res.users.form.modif</field>
75 <field name="model">res.users</field>
76 <field name="type">form</field>
77 <field eval="18" name="priority"/>
78 <field name="arch" type="xml">
80 <notebook colspan="4">
81 <page string="Current Activity">
82 <field name="company_id" widget="selection" readonly="0"
83 groups="base.group_multi_company"
84 on_change="on_change_company_id(company_id)" />
85 <field name="view" readonly="0"/>
86 <label string="" colspan="2"/>
87 <separator string="Default Filters" colspan="4"/>
90 <page string="Preferences">
91 <field name="context_lang" completion="1" readonly="0"/>
92 <field name="context_tz" completion="1" readonly="0"/>
93 <field name="menu_tips" colspan="2" readonly="0"/>
94 <separator string="Email & Signature" colspan="4"/>
95 <group colspan="4"><field name="user_email" widget="email" readonly="0"/></group>
96 <field colspan="4" name="signature" readonly="0" nolabel="1"/>
103 <record id="view_users_form" model="ir.ui.view">
104 <field name="name">res.users.form</field>
105 <field name="model">res.users</field>
106 <field name="type">form</field>
107 <field name="arch" type="xml">
108 <form string="Users">
109 <field name="name" select="1"/>
110 <field name="active"/>
111 <field name="login" select="1"/>
112 <field name="new_password" password="True"/>
114 <notebook colspan="4">
116 <group colspan="1" col="2">
117 <separator string="Contact" colspan="2"/>
118 <field name="company_id" required="1"
119 context="{'user_preference': 0}"
120 groups="base.group_multi_company"
122 <field name="address_id"/>
123 <field name="user_email" widget="email"/>
125 <group colspan="1" col="2" groups="base.group_extended">
126 <separator string="Action" colspan="2"/>
127 <field name="action_id"/>
128 <field domain="[('usage','=','menu')]" name="menu_id" required="True"/>
130 <group colspan="1" col="2">
131 <separator string="Preferences" colspan="2"/>
132 <field name="context_lang"/>
133 <field name="context_tz"/>
134 <group colspan="2" col="4">
135 <field name="view" readonly="0"/>
136 <field name="menu_tips" colspan="2"/>
140 <group colspan="2" col="2">
141 <separator string="Signature" colspan="2"/>
142 <field colspan="2" name="signature" nolabel="1"/>
144 <group colspan="2" col="2" expand="1">
145 <separator string="Groups" colspan="2"/>
146 <field colspan="2" nolabel="1" name="groups_id"/>
149 <page string="Allowed Companies" groups="base.group_multi_company">
150 <field colspan="4" nolabel="1" name="company_ids" select="1"/>
156 <record id="view_users_tree" model="ir.ui.view">
157 <field name="name">res.users.tree</field>
158 <field name="model">res.users</field>
159 <field name="type">tree</field>
160 <field name="arch" type="xml">
161 <tree string="Users">
163 <field name="login"/>
164 <field name="context_lang"/>
170 <record id="view_users_search" model="ir.ui.view">
171 <field name="name">res.users.search</field>
172 <field name="model">res.users</field>
173 <field name="type">search</field>
174 <field name="arch" type="xml">
175 <search string="Users">
177 <field name="login"/>
178 <field name="address_id" string="Address"/>
179 <field name="company_ids" string="Company" groups="base.group_multi_company"/>
184 ======================
186 ======================
188 <record id="view_company_form" model="ir.ui.view">
189 <field name="name">res.company.form</field>
190 <field name="model">res.company</field>
191 <field name="type">form</field>
192 <field name="arch" type="xml">
193 <form string="Company">
194 <group colspan="4" col="6">
195 <field colspan="4" name="name" select="1"/>
196 <field name="partner_id" readonly="1" select="1" required="0"/>
197 <field name="parent_id" select="1" groups="base.group_multi_company"/>
199 <notebook colspan="4">
200 <page string="General Information">
201 <field name="rml_header1" colspan="4"/>
202 <field name="rml_footer1" colspan="4"/>
203 <field name="rml_footer2" colspan="4"/>
204 <field name="currency_id"/>
205 <separator colspan="4" string="Your Logo - Use a size of about 450x150 pixels."/>
206 <field colspan="4" name="logo" widget="image"/>
208 <page string="Header/Footer" groups="base.group_extended">
209 <field colspan="4" name="rml_header" nolabel="1"/>
211 <page string="Internal Header/Footer" groups="base.group_extended">
212 <separator string="Portrait" colspan="2"/>
213 <separator string="Landscape" colspan="2"/>
214 <field colspan="2" name="rml_header2" nolabel="1"/>
215 <field colspan="2" name="rml_header3" nolabel="1"/>
217 <page string="Configuration">
223 <record id="view_company_tree" model="ir.ui.view">
224 <field name="name">res.company.tree</field>
225 <field name="model">res.company</field>
226 <field name="type">tree</field>
227 <field name="field_parent">child_ids</field>
228 <field name="arch" type="xml">
229 <tree string="Companies">
231 <field name="partner_id"/>
236 <record id="view_users_configuration_form" model="ir.ui.view">
237 <field name="name">res.config.users.confirm.form</field>
238 <field name="model">res.config.users</field>
239 <field name="type">form</field>
240 <field name="inherit_id" ref="res_config_view_base"/>
241 <field name="arch" type="xml">
243 <form position="attributes">
244 <attribute name="string">Create User</attribute>
246 <xpath expr='//separator[@string="title"]' position='attributes'>
247 <attribute name='string'>New User</attribute>
249 <xpath expr="//label[@string='description']"
250 position="attributes">
251 <attribute name="string">Create additional users and assign them groups that will allow them to have access to selected functionalities within the system. Click on 'Done' if you do not wish to add more users at this stage, you can always do this later.</attribute>
253 <xpath expr='//separator[@string="vsep"]' position='attributes'>
254 <attribute name='string'></attribute>
256 <group string="res_config_contents" position="replace">
258 <field name="email"/>
259 <field name="login"/>
260 <field name="password" password="True"/>
261 <field name="context_lang"/>
262 <field name="context_tz"/>
264 <separator string="Group" colspan="4"/>
265 <label align="0.0" colspan="4" string="Groups are used to define access rights on objects and the visibility of screens and menus"/>
266 <field colspan="4" nolabel="1" name="groups_id"/>
269 <xpath expr='//button[@name="action_next"]'
270 position='attributes'>
271 <attribute name="name">action_add</attribute>
272 <attribute name='string'>Add User</attribute>
273 <attribute name='icon'>gtk-add</attribute>
276 <xpath expr='//button[@name="action_skip"]'
277 position='attributes'>
278 <!-- if this one is performed first, it transforms
279 the action_skip into action_next, and the
280 transformation of action_next to action_add,
281 since it uses first-match, transforms the same
282 button. And we end up with [add] [next] instead
285 Would probably be simpler to just replace both
286 by nothing and create a pair of brand new
287 buttons... but we'd have to handle the groups
288 around the buttons... oh well...
290 <attribute name="name">action_next</attribute>
291 <attribute name='string'>Done</attribute>
292 <attribute name='icon'>gtk-go-forward</attribute>
298 <record id="action_config_user_form" model="ir.actions.act_window">
299 <field name="name">Create Users</field>
300 <field name="type">ir.actions.act_window</field>
301 <field name="res_model">res.config.users</field>
302 <field name="view_type">form</field>
303 <field name="view_mode">form</field>
304 <field name="view_id" ref="view_users_configuration_form"/>
305 <field name="target">new</field>
308 <record id="view_confirm_simple_view_form" model="ir.ui.view">
309 <field name="name">Configure Your Interface</field>
310 <field name="model">res.config.view</field>
311 <field name="type">form</field>
312 <field name="inherit_id" ref="res_config_view_base"/>
313 <field name="arch" type="xml">
315 <form position="attributes">
316 <attribute name="string">Configure Your Interface</attribute>
318 <xpath expr="//label[@string='description']"
319 position="attributes">
320 <attribute name="string">If you use OpenERP for the first time we strongly advise you to select the simplified interface, which has less features but is easier. You can always switch later from the user preferences.</attribute>
322 <xpath expr='//separator[@string="title"]' position='attributes'>
323 <attribute name='string'>Configure Your Interface</attribute>
325 <xpath expr='//separator[@string="vsep"]' position='attributes'>
326 <attribute name='string'></attribute>
327 <attribute name='rowspan'>12</attribute>
329 <group string="res_config_contents" position="replace">
331 <field colspan="4" name="view" nolabel="1"/>
334 <xpath expr='//button[@name="action_skip"]' position='replace'/>
339 <record id="action_config_simple_view_form" model="ir.actions.act_window">
340 <field name="name">Configure Your Interface</field>
341 <field name="type">ir.actions.act_window</field>
342 <field name="res_model">res.config.view</field>
343 <field name="view_type">form</field>
344 <field name="view_id" ref="view_confirm_simple_view_form"/>
345 <field name="view_mode">form</field>
346 <field name="target">new</field>
349 <record id="config_wizard_step_user" model="ir.actions.todo">
350 <field name="action_id" ref="action_config_user_form"/>
351 <field name="sequence">10</field>
352 <field name="restart">never</field>
353 <field name="state">done</field>
355 <record id="config_wizard_simple_view" model="ir.actions.todo">
356 <field name="action_id" ref="action_config_simple_view_form"/>
357 <field name="restart">always</field>
358 <field name="sequence">1</field>