fix acl error on ir.module.module

This commit is contained in:
Luc De Meyer 2021-01-28 18:30:10 +01:00
parent 12cf223113
commit 12d59f0a23

View File

@ -135,7 +135,7 @@ class EbicsFile(models.Model):
return res
def _check_import_module(self, module):
mod = self.env['ir.module.module'].search(
mod = self.env['ir.module.module'].sudo().search(
[('name', '=like', module),
('state', '=', 'installed')])
if not mod: