fix acl error on ir.module.module

This commit is contained in:
Luc De Meyer 2021-01-28 18:30:10 +01:00
parent d1ab4dee1c
commit 83a454c50f

View File

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