Tuesday, August 12, 2025
1 change · master
New functionality added to Odoo
This adds a way for developers to run Odoo's IoT code on Linux or Mac computers without needing dedicated IoT hardware. It should make IoT testing easier and help improve reliability over time, while not introducing a new production IoT device type.
Original PR description
Testing IoT flows is tricky due to the hardware constraints. The goal of this PR is **NOT** to propose a new kind of IoT, but rather an easier way to run IoT's code on a Linux/Mac OS environment. As…
Testing IoT flows is tricky due to the hardware constraints. The goal of this PR is **NOT** to propose a new kind of IoT, but rather an easier way to run IoT's code on a Linux/Mac OS environment. As such, handlers will NOT be implemented to work on this IoT system. We plan to add more unit tests using a Linux environment to use real IoT interactions to better cover IoT's code. Current focus of this PR is to be able to run an odoo regular instance alongside IoT's code. This needed to adapt some part of IoT's code as IoT is not meant to run with a database. Example of run with IoT code locally with a database (assuming to be on a Linux computer with a regular odoo setup installation): 1. Make sure to have installed IoT requirements with: `pip3 install -r <odoo>/addons/iot_box_image/configuration/requirements.txt` & `apt-get install < <odoo>/addons/iot_box_image/configuration/packages.txt` 2. Run odoo and explicitely load IoT related modules `odoo-bin --load=iot_drivers -d test-with-iot`