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 <field colspan="4" name="signature"/>
118 <page string="Groups">
119 <field colspan="4" nolabel="1" name="groups_id"/>
121 <page string="Roles">
122 <field colspan="4" nolabel="1" name="roles_id"/>
124 <page string="Companies">
125 <field colspan="4" nolabel="1" name="company_ids" select="1"/>
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">
138 <field name="login"/>
139 <field name="company_id"/>
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"/>
158 ======================
160 ======================
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"/>
180 <page string="Currency">
181 <field name="currency_ids" colspan="4" nolabel="1"/>
183 <page string="Header/Footer">
184 <field colspan="4" name="rml_header" nolabel="1"/>
186 <page string="Internal Header/Footer">
187 <field colspan="4" name="rml_header2" nolabel="1"/>
189 <page string="Configuration">
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">
203 <field name="partner_id"/>
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">
215 <form position="attributes">
216 <attribute name="string">Create User</attribute>
219 <group string="res_config_contents" position="replace">
220 <separator string="New User" colspan="4"/>
222 <field name="email"/>
223 <field name="login"/>
224 <field name="password" password="True"/>
225 <field name="context_lang"/>
226 <field name="context_tz"/>
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"/>
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>
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
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...
254 <attribute name="name">action_next</attribute>
255 <attribute name='string'>Done</attribute>
256 <attribute name='icon'>gtk-go-forward</attribute>
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>
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">
279 <form position="attributes">
280 <attribute name="string">Select your Interface</attribute>
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."/>
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."/>
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"/>
292 <xpath expr='//button[@name="action_skip"]' position='replace'/>
293 <xpath expr='//button[@name="action_next"]' position='attributes'>
294 <attribute name='string'>Set</attribute>
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>
312 <!-- register on configuratuion -->
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>
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>