61 lines
3.1 KiB
XML
61 lines
3.1 KiB
XML
<?xml version="1.0"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!-- Update Preferences form !-->
|
|
<record id="view_users_form_simple_modif_mail" model="ir.ui.view">
|
|
<field name="name">res.users.preferences.form.mail</field>
|
|
<field name="model">res.users</field>
|
|
<field name="inherit_id" ref="base.view_users_form_simple_modif"/>
|
|
<field name="arch" type="xml">
|
|
<data>
|
|
<field name="email" position="before">
|
|
<field name="notify_email" widget="radio" readonly="0"/>
|
|
</field>
|
|
</data>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Force update of groups' user view.
|
|
When updating (not new install), as `share` module is not loaded yet, shared groups
|
|
are taken into account when getting the group list, resulting to a different
|
|
organisation of the `Sharing` category (booleans instead of a selection) and thus,
|
|
different virtual field names.
|
|
When applying then inheritance of the following view, the check of field names
|
|
failed due to these virtual field name missmatch.
|
|
This is only for databases updated between a6eac0f08ee9100d1a44a4068d4f580b1c7c4b2c
|
|
and the commit introducing this line.
|
|
-->
|
|
<function model="res.groups" name="update_user_groups_view" />
|
|
|
|
<!-- Update user form !-->
|
|
<record id="view_users_form_mail" model="ir.ui.view">
|
|
<field name="name">res.users.form.mail</field>
|
|
<field name="model">res.users</field>
|
|
<field name="inherit_id" ref="base.view_users_form"/>
|
|
<field name="arch" type="xml">
|
|
<data>
|
|
<field name="signature" position="before">
|
|
<field name="notify_email" widget="radio"/>
|
|
</field>
|
|
<field name="signature" position="before">
|
|
<label for="alias_id" string="Messaging Alias" class="oe_read_only"
|
|
attrs="{'invisible': [('alias_domain', '=', False)]}"/>
|
|
<field name="alias_id" class="oe_read_only" required="0" nolabel="1"
|
|
attrs="{'invisible': [('alias_domain', '=', False)]}"/>
|
|
<label for="alias_name" string="Messaging Alias" class="oe_edit_only"
|
|
attrs="{'invisible': [('alias_domain', '=', False)]}"/>
|
|
<div class="oe_edit_only" attrs="{'invisible': [('alias_domain', '=', False)]}">
|
|
<field name="alias_name" class="oe_inline"/>@<field name="alias_domain" class="oe_inline" readonly="1"/>
|
|
</div>
|
|
<field name="alias_contact" string="Alias Accepts Emails From"
|
|
attrs="{'invisible': [('alias_domain', '=', False)]}"/>
|
|
<field name="display_groups_suggestions" groups="base.group_no_one"/>
|
|
</field>
|
|
</data>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|