From 2a263028112cac21c78197442bff44b2f8594343 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Fri, 18 Oct 2024 19:10:08 +0530 Subject: [PATCH] Oct 18: [FIX] Bug Fixed 'odoo_google_contact_integration' --- odoo_google_contact_integration/models/res_company.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo_google_contact_integration/models/res_company.py b/odoo_google_contact_integration/models/res_company.py index 8df71fec0..1846f9d9e 100644 --- a/odoo_google_contact_integration/models/res_company.py +++ b/odoo_google_contact_integration/models/res_company.py @@ -59,7 +59,7 @@ class ResCompany(models.Model): def _compute_contact_redirect_uri(self): """Compute the redirect URI for onedrive and Google Drive""" for rec in self: - base_url = request.env['ir.config_parameter'].get_param( + base_url = self.env['ir.config_parameter'].sudo().get_param( 'web.base.url') rec.contact_redirect_uri = base_url + '/google_contact_authentication'