(To be commited with [#94024](https://github.com/odoo/odoo/pull/94024)) Duplicating an email sent from Odoo would raise an error because some required fields could not be set. Setting those fields on duplication does not make sense, duplication is to be disabled on e-mails. As this applies to some messages and no use-case could be found for the duplication of messages or notifications, both also had duplication disabled. Task-2857244 closes odoo/odoo#95138 X-original-commit: 6f9656fc4ceeecd304f600b7cd65d649618ad182 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
52 lines
2.0 KiB
XML
52 lines
2.0 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" duplicate="0">
|
|
<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_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>
|
|
|
|
</data></odoo>
|