mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 04:22:04 -06:00
[FIX] fix empty data when saving an attachment
This commit is contained in:
parent
f935defd49
commit
e7139d3a5d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user