[FIX] mass_mailing: Confirmation when sending a mass mailing
When a user clicks on the `Send to all` button in a mass mailing form, then all emails (sometime thousands) are sent inmediatly. With this fix, a confirmation dialog appears and the user is asked to confirm this operation. This simple fix prevents common human errors. opw-659117 Closes #9796
This commit is contained in:
parent
73d5f62acd
commit
d0ccd87e79
|
@ -281,10 +281,10 @@
|
||||||
string="Test Mailing"/>
|
string="Test Mailing"/>
|
||||||
<button name="send_mail" type="object"
|
<button name="send_mail" type="object"
|
||||||
attrs="{'invisible': ['|', ('state', '=', 'done'), ('body_html', '=', False)]}"
|
attrs="{'invisible': ['|', ('state', '=', 'done'), ('body_html', '=', False)]}"
|
||||||
class="oe_highlight" string="Send to All"/>
|
class="oe_highlight" string="Send to All" confirm="This will send the email to all recipients. Do you still want to proceed ?"/>
|
||||||
<button name="send_mail" type="object"
|
<button name="send_mail" type="object"
|
||||||
attrs="{'invisible': ['&', ('state', '!=', 'done'), ('body_html', '!=', False)]}"
|
attrs="{'invisible': ['&', ('state', '!=', 'done'), ('body_html', '!=', False)]}"
|
||||||
string="Send to All"/>
|
string="Send to All" confirm="This will send the email to all recipients. Do you still want to proceed ?"/>
|
||||||
<field name="state" widget="statusbar"/>
|
<field name="state" widget="statusbar"/>
|
||||||
</header>
|
</header>
|
||||||
<div class="oe_form_box_info oe_text_center" attrs="{'invisible': [('scheduled', '=', 0)]}">
|
<div class="oe_form_box_info oe_text_center" attrs="{'invisible': [('scheduled', '=', 0)]}">
|
||||||
|
|
Loading…
Reference in New Issue