Daily updates from Odoo
Monday, January 15, 2024
1 change · master
Code cleanup and technical improvements
This update aligns several Enterprise modules with a new internal data-saving approach so reports and searches use the latest information correctly. It also makes analytic distribution easier to search and group, improving consistency in accounting, budgeting, manufacturing, localization, and project-related views.
Original PR description
### [REF] *: change compatible with the new flush strategy In the community PR, we changed the way to flush pending updates. Now, _search() doens't flush anymore, then we need to update some code to be correct. ### [IMP] core: adapt _read_group*() methods with SQL._metadata We don't need to manually returns fields used in a SQL expression with the way to flush. Metadata is glued to the SQL expression generate by _field_to_sql(). ### [REF] *: analytic_distribution become searchable and groupable In the community PR, analytic_distribution become searchable and groupable. Change some unnecassry _search() usage to search()/ _read_group(). https://github.com/odoo/odoo/pull/144747 https://github.com/odoo/upgrade/pull/5469 https://github.com/odoo/documentation/pull/7194