mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-24 17:38:42 -06:00
[IMP] fix bug when we read document in OE
This commit is contained in:
parent
eda65f7451
commit
37f63bbdaf
@ -166,7 +166,8 @@ def create_doc_from_dms(session, model_name, backend_id, data, name,
|
|||||||
'res_id': res_id,
|
'res_id': res_id,
|
||||||
'user_id': uid,
|
'user_id': uid,
|
||||||
}
|
}
|
||||||
session.context['bool_read_doc'] = True
|
# Don't create doc again in DMS
|
||||||
|
session.context['bool_testdoc'] = True
|
||||||
ir_attach_obj.create(session.cr, session.uid,
|
ir_attach_obj.create(session.cr, session.uid,
|
||||||
data_attach, context=session.context)
|
data_attach, context=session.context)
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user