summaryrefslogtreecommitdiff
path: root/addons/mail/views/res_users_views.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-04-27 11:49:02 +0200
committerThibault Delavallée <tde@openerp.com>2015-04-27 12:52:45 +0200
commit4a975f1b7d719ebbf17e0d4194cf3fcc56e2f56f (patch)
tree96a29b7f19adabe5f371b023116da887bb0ace03 /addons/mail/views/res_users_views.xml
parent4b122ad41d873febe288ab1f8c6cdc078ca2a479 (diff)
[MOV] mail: moved files according to the new module organization
Diffstat (limited to 'addons/mail/views/res_users_views.xml')
-rw-r--r--addons/mail/views/res_users_views.xml60
1 files changed, 60 insertions, 0 deletions
diff --git a/addons/mail/views/res_users_views.xml b/addons/mail/views/res_users_views.xml
new file mode 100644
index 00000000000..7bbe369c4d7
--- /dev/null
+++ b/addons/mail/views/res_users_views.xml
@@ -0,0 +1,60 @@
+<?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>