From f54c335a242023a7c4432c450ab6da43eaf7de51 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Fri, 1 Nov 2019 15:12:32 +0100 Subject: [PATCH] [FIX] sudo to access parameters --- easy_my_coop/models/company.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop/models/company.py b/easy_my_coop/models/company.py index 86572aa..843f5b0 100644 --- a/easy_my_coop/models/company.py +++ b/easy_my_coop/models/company.py @@ -11,7 +11,7 @@ class ResCompany(models.Model): _inherit = 'res.company' def _get_base_logo(self): - base_url = self.env['ir.config_parameter'].get_param('web.base.url') + base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url') self.logo_url = base_url + "/logo.png" coop_email_contact = fields.Char(string="Contact email address for the"