[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:
parent
8879fb1728
commit
4ecf5bb09a
|
@ -28,7 +28,8 @@
|
||||||
<div>Use template
|
<div>Use template
|
||||||
<!--FIX: To avoid css issue of many2one field in footer temporary used oe_form (BUG:1152464)-->
|
<!--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'
|
<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>
|
</div>
|
||||||
<button icon="/email_template/static/src/img/email_template_save.png"
|
<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"
|
type="object" name="save_as_template" string="Save as new template" class="oe_link"
|
||||||
|
|
Loading…
Reference in New Issue