[FIX] model field value overwrite problem fix in email.compose.message wizard.

bzr revid: ysa@tinyerp.com-20110310091520-0u1mjgzfrkukwklf
This commit is contained in:
Yogesh (OpenERP)
2011-03-10 14:45:20 +05:30
parent 95fbd5e9a1
commit bb18651fdc
@@ -64,8 +64,6 @@ class email_compose_message(osv.osv_memory):
vals = {}
if template_id and context.get('email_model') and context.get('email_res_id'):
vals = self.get_template_data(cr, uid, context.get('email_res_id'), template_id, context)
else:
result['model'] = context.get('email_model', False)
if not vals:
return result