[FIX] mail: get_template_value() will pass blank insted of '----' when we dont have value for the field

bzr revid: rha@tinyerp.com-20110428094007-ebw3jn5f4zv81fuj
This commit is contained in:
Rifakat Haradwala (Open ERP) 2011-04-28 15:10:07 +05:30
parent ec101f8ec3
commit 9d5a04fa58
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class email_compose_message(osv.osv_memory):
'object' : self.pool.get(model).browse(cr, uid, resource_id),
})
if result in (None, False):
return str("--------")
return str("")
return tools.ustr(result)
com = re.compile('(\$\{.+?\})')