[IMP] mass_mailing_sms: improve test modal

Improve test modal:
- change the title
- change the dialog size
- shorten the wording
- rename action buttons

Task-3500568

closes odoo/odoo#136905

Signed-off-by: Jérémy Hennecart (jeh) <jeh@odoo.com>
This commit is contained in:
amdi-odoo
2023-10-09 13:25:28 +00:00
parent 4ede16f157
commit 2ca91ca461
2 changed files with 6 additions and 6 deletions
@@ -118,9 +118,9 @@ class Mailing(models.Model):
def action_test(self):
if self.mailing_type == 'sms':
ctx = dict(self.env.context, default_mailing_id=self.id)
ctx = dict(self.env.context, default_mailing_id=self.id, dialog_size='medium')
return {
'name': _('Test SMS marketing'),
'name': _('Test Mailing'),
'type': 'ir.actions.act_window',
'view_mode': 'form',
'res_model': 'mailing.sms.test',
@@ -6,22 +6,22 @@
<field name="arch" type="xml">
<form string="Send a Sample SMS">
<p class="text-muted">
Send a sample SMS for testing purpose to the numbers below (carriage-return-separated list).
Send a sample SMS for testing purpose to the numbers below.
</p>
<group>
<field name="numbers" placeholder="+32 495 85 85 77&#10;+33 545 55 55 55"/>
<field name="mailing_id" invisible="1"/>
</group>
<footer>
<button string="Send" name="action_send_sms" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="x"/>
<button string="Send Test" name="action_send_sms" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Discard" class="btn btn-secondary" special="cancel" data-hotkey="x"/>
</footer>
</form>
</field>
</record>
<record id="mailing_sms_test_action" model="ir.actions.act_window">
<field name="name">Test SMS Marketing</field>
<field name="name">Test Mailing</field>
<field name="res_model">mailing.sms.test</field>
<field name="view_mode">form</field>
<field name="target">new</field>