From e7139d3a5ddf8d4da4ba284ce6aff9e1f258551c Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Thu, 30 Jan 2014 18:20:53 +0100 Subject: [PATCH] [FIX] fix empty data when saving an attachment --- file_document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file_document.py b/file_document.py index c73528d5..26e4d17b 100644 --- a/file_document.py +++ b/file_document.py @@ -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