summaryrefslogtreecommitdiff
path: root/addons/mail/views/res_users_views.xml
blob: a181a337c9382778fbbd1dc753e1e2f034a4b8c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0"?>
<odoo>
    <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="notification_type" widget="radio" readonly="0"/>
                    </field>
                    <xpath expr="//field[@name='image_1920']" position="before">
                        <widget name="notification_alert"/>
                    </xpath>
                </data>
            </field>
        </record>

        <!-- 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="notification_type" widget="radio"/>
                    </field>
                </data>
            </field>
        </record>
    </data>
</odoo>