mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -06:00
[IMP] update the create_doc_in_edm function
This commit is contained in:
parent
2efdbae037
commit
9b566cfb83
@ -116,8 +116,7 @@ def create_doc_in_edm(session, model_name, value, res,
|
||||
sub1 = repo.getObjectByPath(folder_path)
|
||||
else:
|
||||
sub1 = root
|
||||
|
||||
someDoc = sub1.createDocumentFromString(value['datas_fname'],
|
||||
someDoc = sub1.createDocumentFromString(file_name,
|
||||
contentString=base64.b64decode(
|
||||
value['datas']),
|
||||
contentType=value['file_type'])
|
||||
|
Loading…
Reference in New Issue
Block a user