Daily updates from Odoo
Tuesday, June 10, 2025
2 changes
Code cleanup and technical improvements
Odoo now builds IoT box connection links based on how the user is currently accessing the system, avoiding mismatches between secure and non-secure connections. This helps Point of Sale and self-ordering IoT integrations connect more consistently in environments where Odoo can be reached through multiple URLs.
Original PR description
The `ip_url` field on the IoT box model was intended to provide the full URL of the IoT box, e.g. 'http://1.2.3.4:8069' or 'https://1-2-3-4.abcd.odoo-iot.com'. However the problem was that it relied on `web.base.url` to determine if it should use HTTP or HTTPS, which can cause problems if the Odoo database can be accessed via both. To fix this, we instead started to use a helper on the frontend, `formatEndpoint`, to perform the same task, except that it can take into account the actual browsing context and always use the same protocol. This changes the remaining uses of `ip_url` to use `formatEndpoint`, except the `open_homepage` action which now gets the current protocol from the request object. With no remaining usages the field itself can be removed. task-4813536
This change reorganizes a shared testing helper so multiple website-related modules can use the same request mock from a common location. It reduces duplicated test setup and helps keep automated checks consistent across areas like subscriptions, appointments, signing, WhatsApp, and support forums.
Original PR description
odoo/odoo#212405