mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-25 18:08:42 -06:00
[IMP] fix bug when we create job with session
This commit is contained in:
parent
44026a4d0a
commit
bd5d8c5267
@ -69,7 +69,7 @@ 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,
|
||||||
|
Loading…
Reference in New Issue
Block a user