[IMP] email_template: WIP of adding template feature in composer.

bzr revid: tde@openerp.com-20120716173851-63sz7qnqklz3c1zu
This commit is contained in:
Thibault Delavallée 2012-07-16 19:38:51 +02:00
parent 2cbe5b1b7e
commit c773bf396e
1 changed files with 24 additions and 0 deletions

View File

@ -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>