[IMP] mail: Remove "duplicate" from notification form view

(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>
This commit is contained in:
Renaud Thiry
2022-07-04 10:19:39 +02:00
parent 1c0c7a30f2
commit 9eb8e52fdc
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<field name="name">mail.mail.form</field>
<field name="model">mail.mail</field>
<field name="arch" type="xml">
<form string="Email message">
<form string="Email message" duplicate="0">
<header>
<button name="send" string="Send Now" type="object" states='outgoing' class="oe_highlight"/>
<button name="mark_outgoing" string="Retry" type="object" states='exception,cancel'/>
+1 -1
View File
@@ -23,7 +23,7 @@
<field name="model">mail.message</field>
<field name="priority">20</field>
<field name="arch" type="xml">
<form string="Message">
<form string="Message" duplicate="0">
<sheet>
<div class="oe_button_box" name="button_box">
<button name="action_open_document" string="Open Document"
@@ -18,7 +18,7 @@
<field name="name">mail.notification.view.form</field>
<field name="model">mail.notification</field>
<field name="arch" type="xml">
<form string="Notification">
<form string="Notification" duplicate="0">
<header>
<field name="notification_status" widget="statusbar"/>
</header>