<openerp>
<data>
<!-- res.groups -->
+ <record id="view_groups_search" model="ir.ui.view">
+ <field name="name">res.groups.search</field>
+ <field name="model">res.groups</field>
+ <field name="arch" type="xml">
+ <search string="Groups">
+ <field name="name" filter_domain="['|', ('name','ilike',self), ('category_id','ilike',self)]" string="Group"/>
+ </search>
+ </field>
+ </record>
<record id="view_groups_form" model="ir.ui.view">
<field name="name">res.groups.form</field>
<field name="model">res.groups</field>
- <field name="type">form</field>
<field name="arch" type="xml">
<form string="Groups" version="7.0">
+ <sheet>
<group col="4">
<field name="category_id"/>
<field name="name"/>
<field name="comment"/>
</page>
</notebook>
+ </sheet>
</form>
</field>
</record>
<record id="view_users_form" model="ir.ui.view">
<field name="name">res.users.form</field>
<field name="model">res.users</field>
- <field name="type">form</field>
<field name="arch" type="xml">
<form string="Users" version="7.0">
<field name="id" invisible="1"/>
<sheet>
- <div class="oe_right">
- <field name="avatar" widget='image' nolabel="1" on_change="onchange_avatar(avatar)" class="oe_form_avatar"/>
- </div>
- <div class="oe_form_title">
- <label for="name" class="oe_form_readonly_hidden"/>
+ <field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>
+ <div class="oe_title">
+ <label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
- <label for="company_id" class="oe_form_readonly_hidden"/>
- <h2><field name="company_id" context="{'user_preference': 0}"/></h2>
+ <label for="login" class="oe_edit_only"/>
+ <h2><field name="login"/></h2>
</div>
<group>
<group>
- <field name="login"/>
<field name="new_password" password="True" attrs="{'required': [('id','=',False)]}"/>
+ <field name="company_id" context="{'user_preference': 0}"/>
</group>
<group>
<field name="active"/>
<page string="Preferences">
<group>
<group name="preferences">
- <field name="context_lang"/>
- <field name="context_tz"/>
- <field name="menu_tips"/>
+ <field name="lang"/>
+ <field name="tz"/>
</group>
<group groups="base.group_no_one">
<field name="action_id"/>
</group>
</group>
<group>
- <field name="user_email" widget="email"/>
+ <field name="email" widget="email"/>
<field name="signature"/>
</group>
</page>
<page string="Access Rights">
+ <group string="Allowed Companies" groups="base.group_multi_company">
+ <field name="company_ids" nolabel="1" widget="many2many_tags"/>
+ </group>
<group col="4">
- <field name="groups_id"/>
+ <field name="groups_id"/>
</group>
</page>
- <page string="Allowed Companies" groups="base.group_multi_company">
- <field name="company_ids"/>
- </page>
</notebook>
</sheet>
</form>
<record id="view_users_tree" model="ir.ui.view">
<field name="name">res.users.tree</field>
<field name="model">res.users</field>
- <field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Users">
<field name="name"/>
<field name="login"/>
- <field name="context_lang"/>
+ <field name="lang"/>
<field name="date"/>
</tree>
</field>
<record id="view_users_search" model="ir.ui.view">
<field name="name">res.users.search</field>
<field name="model">res.users</field>
- <field name="type">search</field>
<field name="arch" type="xml">
<search string="Users">
- <field name="name"/>
- <field name="login"/>
+ <field name="name" filter_domain="['|', ('name','ilike',self), ('login','ilike',self)]" string="User"/>
<field name="company_ids" string="Company" groups="base.group_multi_company"/>
</search>
</field>
<record id="view_users_form_simple_modif" model="ir.ui.view">
<field name="name">res.users.preferences.form</field>
<field name="model">res.users</field>
- <field name="type">form</field>
<field eval="18" name="priority"/>
<field name="arch" type="xml">
<form string="Users" version="7.0">
- <div class="oe_right oe_form_avatar">
- <field name="avatar" widget='image' on_change="onchange_avatar(avatar)"/>
- </div>
- <div class="oe_form_title">
- <h1>
- <field name="name" readonly="1" class="oe_form_readonly_hidden"/>
- (<field name="login" readonly="1" class="oe_form_readonly_hidden"/>)
- </h1>
- <label for="company_id" class="oe_form_readonly_hidden"/>
- <h2>
- <field name="company_id" widget="selection" readonly="0"
- groups="base.group_multi_company" on_change="on_change_company_id(company_id)"/>
- </h2>
- </div>
- <group col="4" string="Preferences">
- <field name="context_lang" readonly="0"/>
- <field name="context_tz" readonly="0"/>
+ <field name="image" widget='image' class="oe_right oe_avatar" options='{"preview_image": "image_small"}'/>
+ <h1>
+ <field name="name" readonly="1" class="oe_inline"/>
+ (<field name="login" readonly="1" class="oe_inline"/>)
+ </h1>
+ <group name="preferences" col="4">
+ <field name="lang" readonly="0"/>
+ <field name="company_id" readonly="0"
+ groups="base.group_multi_company" on_change="on_change_company_id(company_id)"/>
+ <field name="tz" readonly="0"/>
+ <field name="company_id" widget="selection" readonly="0"
+ groups="base.group_multi_company" on_change="on_change_company_id(company_id)"/>
</group>
<group string="Email Preferences">
- <field name="user_email" widget="email" readonly="0"/>
+ <field name="email" widget="email" readonly="0"/>
<field name="signature" readonly="0"/>
</group>
+ <footer>
+ <button name="preference_change_password" type="object" string="Change password"/>
+ <button name="preference_save" type="object" string="Save"/>
+ or
+ <button name="preference_cancel" string="Cancel" special="cancel" class="oe_link"/>
+ </footer>
</form>
</field>
</record>
<field name="name">Change My Preferences</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.users</field>
+ <field name="target">new</field>
<field name="view_type">form</field>
- <field name="view_mode">form,tree</field>
- <field name="domain">[('id','=',uid)]</field>
- </record>
- <record id="action_res_users_my_view1" model="ir.actions.act_window.view">
- <field eval="20" name="sequence"/>
- <field name="view_mode">tree</field>
- <field name="act_window_id" ref="action_res_users_my"/>
+ <field name="view_mode">form</field>
</record>
<record id="action_res_users_my_view2" model="ir.actions.act_window.view">
<field eval="10" name="sequence"/>