diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-07-16 19:38:51 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-07-16 19:38:51 +0200 |
| commit | c773bf396e4fbf2176191e9fccbee6809308c009 (patch) | |
| tree | 60874ed6c9bcef3fde136af293e5c1376b72f9f1 /addons/email_template/wizard/email_compose_message_view.xml | |
| parent | 2cbe5b1b7efc5df3eb591be36c8acf6b0be9f5b2 (diff) | |
[IMP] email_template: WIP of adding template feature in composer.
bzr revid: tde@openerp.com-20120716173851-63sz7qnqklz3c1zu
Diffstat (limited to 'addons/email_template/wizard/email_compose_message_view.xml')
| -rw-r--r-- | addons/email_template/wizard/email_compose_message_view.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/email_template/wizard/email_compose_message_view.xml b/addons/email_template/wizard/email_compose_message_view.xml index 96ea55da9e5..d80a86fed23 100644 --- a/addons/email_template/wizard/email_compose_message_view.xml +++ b/addons/email_template/wizard/email_compose_message_view.xml @@ -25,5 +25,29 @@ </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="1" nolabel="1" invisible="1"/> + <field name="template_id" colspan="4" 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="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> + </data> + </field> + </record> + </data> </openerp> |
