diff --git a/odoo/models.py b/odoo/models.py
index 6dbdc1827df3f03e3431f99a535a01f43aa17d02..ca7e3dfb9c391bdd7a1c08ba4c17b53424144a31 100644
--- a/odoo/models.py
+++ b/odoo/models.py
@@ -4245,7 +4245,7 @@ Fields:
                     _logger.warning("Creating record %s in module %s.", data['xml_id'], module)
 
         if self.env.context.get('import_file'):
-            existing_modules = self.env['ir.module.module'].search([]).mapped('name')
+            existing_modules = self.env['ir.module.module'].sudo().search([]).mapped('name')
             for data in to_create:
                 xml_id = data.get('xml_id')
                 if xml_id: