1 <?xml version="1.0" encoding="utf-8"?>
9 <menuitem id="next_id_2" name="User Interface" parent="base.menu_custom"/>
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 colspan="4" 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 ======================
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">
79 <notebook colspan="4">
80 <page string="Current Activity">
81 <field name="company_id" widget="selection" readonly="0" context="{'user_prefence':True}"/>
83 <separator colspan="4" string="Preferences"/>
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"/>
91 <field colspan="4" name="signature" readonly="0"/>
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">
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"/>
120 <group colspan="2" col="2">
121 <separator string="Access Rights (groups)" colspan="2"/>
122 <field colspan="2" nolabel="1" name="groups_id"/>
125 <page string="Roles">
126 <field colspan="4" nolabel="1" name="roles_id"/>
128 <page string="Companies">
129 <field colspan="4" nolabel="1" name="company_ids" select="1"/>
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">
142 <field name="login"/>
143 <field name="company_id"/>
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"/>
162 ======================
164 ======================
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"/>
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"/>
186 <page string="Header/Footer" groups="base.group_extended">
187 <field colspan="4" name="rml_header" nolabel="1"/>
189 <page string="Internal Header/Footer" groups="base.group_extended">
190 <field colspan="4" name="rml_header2" nolabel="1"/>
192 <page string="Configuration">
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">
206 <field name="partner_id"/>
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">
218 <form position="attributes">
219 <attribute name="string">Create User</attribute>
222 <group string="res_config_contents" position="replace">
223 <separator string="New User" colspan="4"/>
225 <field name="email"/>
226 <field name="login"/>
227 <field name="password" password="True"/>
228 <field name="context_lang"/>
229 <field name="context_tz"/>
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"/>
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>
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
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...
257 <attribute name="name">action_next</attribute>
258 <attribute name='string'>Done</attribute>
259 <attribute name='icon'>gtk-go-forward</attribute>
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>
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">
282 <form position="attributes">
283 <attribute name="string">Choose Your Interface</attribute>
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>
289 <xpath expr='//separator[@string="title"]' position='attributes'>
290 <attribute name='string'>Choose Your Interface</attribute>
292 <xpath expr='//separator[@string="vsep"]' position='attributes'>
293 <attribute name='string'></attribute>
295 <group string="res_config_contents" position="replace">
297 <field colspan="5" name="view" nolabel="1"/>
300 <xpath expr='//button[@name="action_skip"]' position='replace'/>
301 <xpath expr='//button[@name="action_next"]' position='attributes'>
302 <attribute name='string'>Set</attribute>
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>
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>
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>