Tuesday, January 21, 2025
1 change · 18.0
Enhancements to existing features
This update makes internal device-tracking logic return a clear success signal when a new device record is created. It helps future customizations detect new devices more simply and reliably, with no direct change for everyday users.
Original PR description
In case you want to inherit _update_device, and want to know whether or not a device was made, you need to first get the latest id, then call super(), and then compare the latest id with the previous value. This can simply be fixed by returning True and checking the return value. Meant to simplify https://github.com/odoo/internal/pull/3299