mail/wizard/mail_template_reset_views.xml

33 lines
1.4 KiB
XML
Raw Permalink Normal View History

2024-05-03 12:40:35 +03:00
<?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="x"/>
</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>