[IMP] fix bug when we create job with session

This commit is contained in:
EL HADJI DEM 2014-04-16 17:57:27 -04:00 committed by Sandy Carter
parent 44026a4d0a
commit bd5d8c5267

View File

@ -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