Skip to content

Commit

Permalink
Merge 6eda3cb into 31fb33a
Browse files Browse the repository at this point in the history
  • Loading branch information
sebalix committed Nov 14, 2019
2 parents 31fb33a + 6eda3cb commit 965b2fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion connector_importer/components/importer_csv_std.py
Expand Up @@ -116,7 +116,9 @@ def run(self, record, is_last_importer=True, **kw):
try:
with self.env.cr.savepoint():
fieldnames, data = self.prepare_load_params(dataset)
load_res = self.model.load(fieldnames, data)
context = self._odoo_create_context()
load_res = self.model.with_context(
**context).load(fieldnames, data)

# In case of errors `load` returns a list of messages with
# the cause and the rows range. Here we map these messages
Expand Down

0 comments on commit 965b2fe

Please sign in to comment.