summaryrefslogtreecommitdiff
path: root/addons/mail/views/mail_notification_views.xml
blob: 3167fb4cda47a5062386b50205e7fe5b64b7170a (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0"?>
<odoo><data>
    <record id="mail_notification_view_tree" model="ir.ui.view">
        <field name="name">mail.notification.view.tree</field>
        <field name="model">mail.notification</field>
        <field name="arch" type="xml">
            <tree string="Notifications">
                <field name="mail_message_id"/>
                <field name="notification_type"/>
                <field name="res_partner_id"/>
                <field name="is_read"/>
                <field name="failure_type"/>
            </tree>
        </field>
    </record>

    <record id="mail_notification_view_form" model="ir.ui.view">
        <field name="name">mail.notification.view.form</field>
        <field name="model">mail.notification</field>
        <field name="arch" type="xml">
            <form string="Notification">
                <header>
                    <field name="notification_status" widget="statusbar"/>
                </header>
                <sheet>
                    <group>
                        <group string="Source">
                            <field name="mail_message_id"/>
                            <field name="notification_type"/>
                            <field name="mail_id"/>
                            <field name="res_partner_id"/>
                        </group>
                        <group string="Status">
                            <field name="is_read"/>
                            <field name="read_date"/>
                            <field name="failure_type"/>
                            <field name="failure_reason"/>
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="mail_notification_action" model="ir.actions.act_window">
        <field name="name">Notifications</field>
        <field name="res_model">mail.notification</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem name="Notifications"
        id="mail_notification_menu"
        parent="mail.mail_menu_technical"
        action="mail_notification_action"
        sequence="20"
        groups="base.group_no_one"/>

</data></odoo>