[FIX] mail: create and edit of template_id in compose message now works, as we pass the template model in context (among others useful default value)

bzr revid: dle@openerp.com-20140207104637-lkx5am24608n8jka
This commit is contained in:
Denis Ledoux 2014-02-07 11:46:37 +01:00
parent 8879fb1728
commit 4ecf5bb09a
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@
<div>Use template
<!--FIX: To avoid css issue of many2one field in footer temporary used oe_form (BUG:1152464)-->
<field name="template_id" nolabel="1" class='oe_inline'
on_change="onchange_template_id(template_id, composition_mode, model, res_id, context)" domain="[('model_id.model','=',model)]"/>
on_change="onchange_template_id(template_id, composition_mode, model, res_id, context)" domain="[('model_id.model','=',model)]"
context="{'default_model': model, 'default_body_html': body, 'default_subject': subject}"/>
</div>
<button icon="/email_template/static/src/img/email_template_save.png"
type="object" name="save_as_template" string="Save as new template" class="oe_link"