mail_template_reset_views.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="mail_template_reset_view_form" model="ir.ui.view">
  4. <field name="name">mail.template.reset.view.form</field>
  5. <field name="model">mail.template.reset</field>
  6. <field name="priority">1000</field>
  7. <field name="arch" type="xml">
  8. <form>
  9. <div>
  10. Are you sure you want to reset these email templates to their original configuration? Changes and translations will be lost.
  11. </div>
  12. <footer>
  13. <button string="Proceed" class="btn btn-primary" type="object" name="reset_template" data-hotkey="q"/>
  14. <button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
  15. </footer>
  16. </form>
  17. </field>
  18. </record>
  19. <record id="mail_template_reset_action" model="ir.actions.act_window">
  20. <field name="name">Reset Mail Template</field>
  21. <field name="res_model">mail.template.reset</field>
  22. <field name="binding_model_id" ref="mail.model_mail_template"/>
  23. <field name="binding_view_types">list</field>
  24. <field name="type">ir.actions.act_window</field>
  25. <field name="view_mode">form</field>
  26. <field name="target">new</field>
  27. <field name="context">{
  28. 'default_template_ids': active_ids
  29. }</field>
  30. <field name="view_id" ref="mail_template_reset_view_form"/>
  31. </record>
  32. </odoo>