Skip to content
Snippets Groups Projects
Commit 6f9656fc authored by Renaud Thiry's avatar Renaud Thiry
Browse files

[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#94026

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 215c8fc7
No related branches found
No related tags found
No related merge requests found
......@@ -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'/>
......
......@@ -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>
<group>
<group>
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment