Files
odoo_source/addons/mail/wizard/mail_template_reset_views.xml
T
amdi-odoo 02ec80445b [IMP] mail,mass_mailing_sms,*: improve UI
*: phone_validation

- Add sample data in the mass_mailing_sms blacklist phone
numbers tree view.
- Update the mass_mailing_sms demo data so that, instead of
the sms being stuck due to a lack of credits, they are
all sent.
- Swap the mass_mailing_sms list view with the kanban view
so that the list view is the main one like in Email Marketing.
- Rename the reset mail template confirm button from "Proceed"
to "Reset Template" to make the action more explicit.

Task-3280602

closes odoo/odoo#119321

Related: odoo/enterprise#40120
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-05-05 17:06:23 +02:00

33 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="mail_template_reset_view_form" model="ir.ui.view">
<field name="name">mail.template.reset.view.form</field>
<field name="model">mail.template.reset</field>
<field name="priority">1000</field>
<field name="arch" type="xml">
<form>
<div>
Are you sure you want to reset these email templates to their original configuration? Changes and translations will be lost.
</div>
<footer>
<button string="Reset Template" class="btn btn-primary" type="object" name="reset_template" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
</record>
<record id="mail_template_reset_action" model="ir.actions.act_window">
<field name="name">Reset Mail Template</field>
<field name="res_model">mail.template.reset</field>
<field name="binding_model_id" ref="mail.model_mail_template"/>
<field name="binding_view_types">list</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="context">{
'default_template_ids': active_ids
}</field>
<field name="view_id" ref="mail_template_reset_view_form"/>
</record>
</odoo>