Daily updates from Odoo
Wednesday, July 3, 2019
3 changes
Code cleanup and technical improvements
This update removes an outdated internal coding pattern across many Odoo apps and replaces it with the current recordset-based approach. It prepares the platform for removal of deprecated framework behavior, improving maintainability and reducing the risk of unexpected developer-facing behavior without introducing a direct business workflow change.
Original PR description
Adapt all code that was using `api.one` to recordset-style method and remove any and all calls to `api.one` in preparation for its removal. Related to https://github.com/odoo/enterprise/pull/3277
Inventory adjustments that are still in draft or have been cancelled can now be deleted. This keeps stock records easier to clean up when adjustments are no longer needed, without affecting completed inventory changes.
This update removes use of an outdated internal programming pattern across several Odoo Enterprise apps and adapts the code to the newer recordset approach. It prepares the system for future platform changes while keeping existing business features working as expected.
Original PR description
Adapt all code that was using `api.one` to recordset-style method and remove any and all calls to `api.one` in preparation for its removal. Related to https://github.com/odoo/odoo/pull/29511