mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 17:08:46 -06:00
[IMP] fix bug when we create job with session
This commit is contained in:
parent
44026a4d0a
commit
bd5d8c5267
@ -69,12 +69,12 @@ class ir_attachment(orm.Model):
|
|||||||
# Create Job
|
# Create Job
|
||||||
# if bool_testdoc in context, we don't need to create
|
# if bool_testdoc in context, we don't need to create
|
||||||
# the doc in the DMS
|
# the doc in the DMS
|
||||||
if not context['bool_testdoc']:
|
if not context.get('bool_testdoc'):
|
||||||
create_doc_in_edm.delay(session,
|
create_doc_in_edm.delay(session,
|
||||||
'ir.attachment',
|
'ir.attachment',
|
||||||
value,
|
value,
|
||||||
res,
|
res,
|
||||||
dict_metadata,
|
dict_metadata,
|
||||||
user_login)
|
user_login)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user