mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-24 17:38:42 -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'],
|
'date': msg['date'],
|
||||||
'ext_id': msg['message_id'],
|
'ext_id': msg['message_id'],
|
||||||
'datas_fname': att[0],
|
'datas_fname': att[0],
|
||||||
'datas': base64.b64encode(att[0][1])
|
'datas': base64.b64encode(att[1])
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
return vals
|
return vals
|
||||||
|
Loading…
Reference in New Issue
Block a user