diff --git a/base_import_async/models/base_import_import.py b/base_import_async/models/base_import_import.py index 851478adae..c9fa41b80f 100644 --- a/base_import_async/models/base_import_import.py +++ b/base_import_async/models/base_import_import.py @@ -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: