Daily updates from Odoo
Tuesday, April 29, 2025
1 change · master
Code cleanup and technical improvements
This update standardizes how linked record values are handled across Odoo screens such as forms, lists, kanban views, documents, accounting, appointments, helpdesk, field service, and knowledge. The change is mostly internal, helping the platform support richer related information while keeping standard server data calls unchanged.
Original PR description
Currently, in the RelationalModel, the value of a many2one is represented by an Array [id, display_name]. In the PR [1], we already introduced a change on their value. The value is still an Array but properties are set on it too. This allows to add relatedFields on many2ones. With this commit, we fully replace the array value by an object thus properties 0 and 1 are not available anymore. Calling an orm method like read or search_read still gives the array representation, the change is done only by using RelationalModel (in form view, list, kanban, fields, etc.). [1]: https://github.com/odoo/odoo/pull/202534 task-3547961 task-4658840