Skip to content

Commit

Permalink
Merge PR #671 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jul 10, 2024
2 parents 20d3436 + 8e42a72 commit a34bec4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base_import_async/models/base_import_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def execute_import(self, fields, columns, options, dryrun=False):

# get the translated model name to build
# a meaningful job description
search_result = self.env["ir.model"].name_search(self.res_model, operator="=")
search_result = (
self.env["ir.model"].sudo().name_search(self.res_model, operator="=")
)
if search_result:
translated_model_name = search_result[0][1]
else:
Expand Down

0 comments on commit a34bec4

Please sign in to comment.