Browse Source

[FIX] sudo to access parameters

pull/33/head
robin.keunen 5 years ago
parent
commit
f54c335a24
  1. 2
      easy_my_coop/models/company.py

2
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"

Loading…
Cancel
Save