Files
odoo_source/addons/mail/views/mail_notification_views.xml
T
Thibault Delavallée dc89f58467 [IMP] mail, rating, portal_rating: improve message and rating views
Purpose of this commit is to add some missing fields in message view, notably
is_internal newly added flag and its ratings. Rating form view is also
updated to display is_internal flag, and form view is a bit reorganized.

Task ID 2071556
PR #38692
2019-12-02 15:18:45 +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="20"
groups="base.group_no_one"/>
</data></odoo>