1 <?xml version="1.0" encoding="utf-8"?>
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">
11 <xpath expr="//form/footer/button" position="before">
12 <field name="use_template" invisible="1"/>
13 <button icon="gtk-paste" type="object" name="toggle_template"
14 string="" help="Use a message template" />
15 <button icon="gtk-save" type="object" name="save_as_template"
16 string="" help="Save as a new template"/>
18 <xpath expr="//form/notebook" position="after">
19 <group attrs="{'invisible':[('use_template','=',False)]}" colspan="4" col="4">
20 <field name="use_template" invisible="1"/>
21 <field name="template_id" colspan="3"
22 on_change="onchange_template_id(use_template, template_id, composition_mode, model, res_id, context)"/>
29 <record model="ir.ui.view" id="email_compose_message_wizard_inherit_form_chatter">
30 <field name="name">mail.compose.message.form</field>
31 <field name="model">mail.compose.message</field>
32 <field name="inherit_id" ref="mail.email_compose_message_wizard_form_chatter"/>
33 <field name="arch" type="xml">
35 <xpath expr="//field[@name='partner_ids']" position="after">
36 <field name="use_template" colspan="2" nolabel="1" invisible="1"
37 on_change="onchange_use_template(use_template, template_id, composition_mode, model, res_id, context)"/>
38 <field name="template_id" colspan="2" nolabel="1"
39 attrs="{'invisible':[('use_template','=',False)]}"
40 on_change="onchange_template_id(use_template, template_id, composition_mode, model, res_id, context)"/>
42 <xpath expr="//button[@class='oe_mail_compose_message_attachment']" position="before">
43 <button icon="/email_template/static/src/img/email_template.png"
44 type="object" name="toggle_template" string=""
45 help="Use a message template"
46 attrs="{'invisible':[('content_subtype','!=','html')]}"/>
47 <button icon="/email_template/static/src/img/email_template_save.png"
48 type="object" name="save_as_template" string=""
49 help="Save as a new template"
50 attrs="{'invisible':[('content_subtype','!=','html')]}"/>