[FIX] mail, email_template: prevent user from creating
[odoo/odoo.git] / addons / email_template / wizard / mail_compose_message_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record model="ir.ui.view" id="email_compose_message_wizard_inherit_form">
6             <field name="name">mail.compose.message.form</field>
7             <field name="model">mail.compose.message</field>
8             <field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
9             <field name="arch" type="xml">
10                 <xpath expr="//footer" position="inside">
11                     <group class="oe_right oe_form" col="1">
12                         <div>Use template
13                             <!--FIX: To avoid css issue of many2one field in footer temporary used oe_form (BUG:1152464)-->
14                             <field name="template_id" nolabel="1" class='oe_inline'
15                                 options="{'no_create': True}"
16                                 on_change="onchange_template_id(template_id, composition_mode, model, res_id, context)" domain="[('model_id.model','=',model)]"
17                                 context="{'default_model': model, 'default_body_html': body, 'default_subject': subject}"/>
18                         </div>
19                         <button icon="/email_template/static/src/img/email_template_save.png"
20                             type="object" name="save_as_template" string="Save as new template" class="oe_link"
21                             help="Save as a new template"/>
22                     </group>
23                 </xpath>
24             </field>
25         </record>
26
27     </data>
28 </openerp>