Search code examples
odoolong-polling

Odoo Link in Chat Doesn't Referring To Actual Domain But Using IP Instead


Normally, when someone is tagging other user (example in Sales or Purchase representative column), it will create a notification and link of RFQ's or SO's to tagged user.

Our current problem is, when tagged user are opening that link, they are directed to our local IP (192.168.1.95:8069/link-to-document) instead of our domain (example.com/link-to-document). We are using on-premise odoo and nginx as reverse proxy but only accessible using LAN and VPN.

Here is the picture of the problem. I hover the link and it seems directing to our local IP instead of our domain.

Problem Image

Any help will be appreciated!


Solution

  • There are two parameters needed:

    • web.base.url which will be used in lot of features in Odoo like link/url creation for Chatter messages
    • web.base.url.freeze which will freeze the URL in parameter web.base.url