[FIX] fix empty data when saving an attachment

This commit is contained in:
Florian da Costa 2014-01-30 18:20:53 +01:00
parent f935defd49
commit e7139d3a5d

View File

@ -75,7 +75,7 @@ class file_document(orm.Model):
'date': msg['date'],
'ext_id': msg['message_id'],
'datas_fname': att[0],
'datas': base64.b64encode(att[0][1])
'datas': base64.b64encode(att[1])
}
break
return vals