Wednesday, April 23, 2025
1 change
Code cleanup and technical improvements
Delivery IoT printing now uses a direct server connection through websockets instead of relying on a connected browser session to relay print requests. This makes printing from warehouse delivery flows simpler and more reliable while keeping the user experience unchanged.
Original PR description
The logic to print from the server using longpolling by broadcasting via the client bus was added as a workaround for messages received by the `delivery_iot` model as the server could not directly contact IoT Boxes to print: once a client connected, he automatically performed the request through longpolling ([See](https://github.com/odoo/enterprise/pull/36904)). Since we can use the websocket to print, we replaced this logic to directly do it from the server. Community PR: [https://github.com/odoo/odoo/pull/206895](https://github.com/odoo/odoo/pull/206895) Task: 4649328