Skip to content

Commit

Permalink
[FIX] fix issue when context is None
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Nov 21, 2016
1 parent afb3424 commit c93f8ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base_import_async/models/base_import_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ class BaseImportConnector(TransientModel):
_inherit = 'base_import.import'

def do(self, cr, uid, res_id, fields, options, dryrun=False, context=None):
if context is None:
context = {}

if dryrun or not options.get(OPT_USE_CONNECTOR):
# normal import
return super(BaseImportConnector, self).do(
Expand Down

0 comments on commit c93f8ea

Please sign in to comment.