[FIX] crm: fixed attachment problem as list

bzr revid: rha@tinyerp.com-20110421053450-2pj6x32de396uqoh
This commit is contained in:
Rifakat Haradwala (Open ERP)
2011-04-21 11:04:50 +05:30
parent 6a4cd58195
commit b511ca0034
+2 -2
View File
@@ -44,9 +44,9 @@ class crm_add_note(osv.osv_memory):
case = case_list[0]
user_obj = self.pool.get('res.users')
user_name = user_obj.browse(cr, uid, [uid], context=context)[0].name
attach = [
attach = dict(
(x.name, base64.decodestring(x.binary)) for x in obj.attachment_ids
]
)
case_pool.history(cr, uid, [case], self.pool.get('email.message').truncate_data(cr, uid, obj.body, context=context), history=False,
details=obj.body, email_from=user_name, attach=attach)