The type fields of actions already defaults to the model name in the base model definition. Therefore, specifying `ir.actions.server`, `ir.actions.act_window` & so on as type is useless (and adds noise since it's the same as the action model). closes odoo/odoo#114539 Related: odoo/enterprise#37855 Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
33 lines
1.4 KiB
XML
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="Proceed" 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>
|