Browse Source

Oct 18: [FIX] Bug Fixed 'odoo_google_contact_integration'

pull/347/head
Cybrosys Technologies 6 months ago
parent
commit
2a26302811
  1. 2
      odoo_google_contact_integration/models/res_company.py

2
odoo_google_contact_integration/models/res_company.py

@ -59,7 +59,7 @@ class ResCompany(models.Model):
def _compute_contact_redirect_uri(self): def _compute_contact_redirect_uri(self):
"""Compute the redirect URI for onedrive and Google Drive""" """Compute the redirect URI for onedrive and Google Drive"""
for rec in self: 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') 'web.base.url')
rec.contact_redirect_uri = base_url + '/google_contact_authentication' rec.contact_redirect_uri = base_url + '/google_contact_authentication'

Loading…
Cancel
Save