mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 04:22:04 -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
|
||||
# if bool_testdoc in context, we don't need to create
|
||||
# the doc in the DMS
|
||||
if not context['bool_testdoc']:
|
||||
create_doc_in_edm.delay(session,
|
||||
'ir.attachment',
|
||||
value,
|
||||
res,
|
||||
dict_metadata,
|
||||
if not context.get('bool_testdoc'):
|
||||
create_doc_in_edm.delay(session,
|
||||
'ir.attachment',
|
||||
value,
|
||||
res,
|
||||
dict_metadata,
|
||||
user_login)
|
||||
return res
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user