Skip to content

Commit

Permalink
Merge PR #57 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Nov 14, 2019
2 parents 31fb33a + 6eda3cb commit 5588981
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 5588981

Please sign in to comment.