Hello,
i am trying to do a multi company setup with Odoo 14 (community, self hosted).
Each company has a website, the domains are directed via CNAME to Odoo host and Nginx listens to them as well eg:
office.company1.com
office.company2.com
The setup works as far as that with each of the above urls Odoo would show the corresponding website. Great so far but:
Lets say i am logged in as admin through company1 url (office.company1.com) and i create a sale order for company one, the acceptance (portal) link that is send out to the customer via email directs him to office.company1.com/my/orders.... - correct. But if i am logged in through office.company1.com but then change to the other company in Odoo admin, and then create a sale order for company 2, the email that is send out to the customer and the link still features office.company1.com/my/orders, where it should be office.company2.com/my/orders. It seems to me, that these links are depending on what url i, as an admin or worker are on at the moment and not correspond to the company on wich behalf the sale order is sent.
I googled for hours but could not find someone that has a solution for this or even sees that same thing as a problem. Does anyone has a solution or can direct me to one?
Thanks