diff options
| author | Purnendu Singh (OpenERP) <psi@tinyerp.com> | 2012-08-06 11:41:13 +0530 |
|---|---|---|
| committer | Purnendu Singh (OpenERP) <psi@tinyerp.com> | 2012-08-06 11:41:13 +0530 |
| commit | 2bbdc47dc8d791cd502c8fc37ec9a5273ee10292 (patch) | |
| tree | bc8dbba2cad6cc3eb2d9b343b1552d53698b6987 /addons/email_template/wizard/mail_compose_message_view.xml | |
| parent | d72386f18fff4abc3e7dcd2b9223a25028375a19 (diff) | |
| parent | 0d2d7ee5855ecbd463ccc6fd902f3af54c504410 (diff) | |
[MERGE] merge with main addons
bzr revid: psi@tinyerp.com-20120806061113-1ck1nrda2sdq06im
Diffstat (limited to 'addons/email_template/wizard/mail_compose_message_view.xml')
| -rw-r--r-- | addons/email_template/wizard/mail_compose_message_view.xml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/addons/email_template/wizard/mail_compose_message_view.xml b/addons/email_template/wizard/mail_compose_message_view.xml new file mode 100644 index 00000000000..a2f38a890c2 --- /dev/null +++ b/addons/email_template/wizard/mail_compose_message_view.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + + <record model="ir.ui.view" id="email_compose_message_wizard_inherit_form"> + <field name="name">mail.compose.message.form</field> + <field name="model">mail.compose.message</field> + <field name="type">form</field> + <field name="inherit_id" ref="mail.email_compose_message_wizard_form"/> + <field name="arch" type="xml"> + <data> + <xpath expr="//form/footer/button" position="before"> + <field name="use_template" invisible="1"/> + <button icon="gtk-paste" type="object" name="template_toggle" + string="" help="Use a message template" /> + <button icon="gtk-save" type="object" name="save_as_template" + string="" help="Save as a new template"/> + </xpath> + <xpath expr="//form/notebook" position="after"> + <group attrs="{'invisible':[('use_template','=',False)]}" colspan="4" col="4"> + <field name="template_id" colspan="3" + on_change="on_change_template(use_template, template_id, email_from, email_to, context)"/> + </group> + </xpath> + </data> + </field> + </record> + + <record model="ir.ui.view" id="email_compose_message_wizard_inherit_form_chatter"> + <field name="name">mail.compose.message.form</field> + <field name="model">mail.compose.message</field> + <field name="type">form</field> + <field name="inherit_id" ref="mail.email_compose_message_wizard_form_chatter"/> + <field name="arch" type="xml"> + <data> + <xpath expr="//field[@name='dest_partner_ids']" position="after"> + <field name="use_template" colspan="2" nolabel="1" invisible="1" + on_change="onchange_use_template(use_template, context)"/> + <field name="template_id" colspan="2" nolabel="1" + attrs="{'invisible':[('use_template','=',False)]}" + on_change="on_change_template(use_template, template_id, False, False, context)"/> + </xpath> + <xpath expr="//a[@class='oe_mail_compose_message_checklist']" position="before"> + <button icon="/email_template/static/src/img/email_template.png" + type="object" name="template_toggle" string="" + help="Use a message template"/> + <button icon="/email_template/static/src/img/email_template_save.png" + type="object" name="save_as_template" string="" + help="Save as a new template"/> + </xpath> + </data> + </field> + </record> + + </data> +</openerp> |
