Files
odoo_source/addons/mail/views/mail_notification_views.xml
T
Thibault Delavallée fea0827153 [IMP] mail: add views for mail.notification model
Somehow having views could be necessary. Previously the only way to see
notifications was embedded inside mail.message views (notification_ids).

Task 2118599
PR #39460

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-11-07 12:21:33 +00:00

59 lines
2.2 KiB
XML

<?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="30"
groups="base.group_no_one"/>
</data></odoo>