This commit adds user feedback in the form of a message logged on the related document (mailing.mailing) when testing a mailing/sms. Before this change, when sending an email to your own mailbox for testing purpose, or when sending an SMS to your phone, you did not get any interface feedback on whether it worked or not. Now, a logged message will show if it's successful and if not, explain why it failed with a short error message (no IAP credits / misconfigured outgoing mail server / ...). In addition, email and phone inputs are now split on the '\n' character instead of a coma, which allows easier validation of the email addresses. Task-2375526 closes odoo/odoo#63421 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_test_form">
|
|
<field name="name">mailing.mailing.test.form</field>
|
|
<field name="model">mailing.mailing.test</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Send a Sample Mail">
|
|
<p class="text-muted">
|
|
Send a sample mailing for testing purpose to the address below.
|
|
</p>
|
|
<group>
|
|
<field name="email_to" placeholder="email1@example.com email2@example.com"/>
|
|
</group>
|
|
<footer>
|
|
<button string="Send" name="send_mail_test" type="object" class="btn-primary"/>
|
|
<button string="Cancel" class="btn-secondary" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_mail_mass_mailing_test" model="ir.actions.act_window">
|
|
<field name="name">Mailing Test</field>
|
|
<field name="res_model">mailing.mailing.test</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
</odoo>
|