Friday, June 20, 2025
3 changes · master
Resolved issues and error corrections
This update adjusts internal tests in Documents and Spreadsheet Edition so they match recent changes to how model selection data is represented. It helps keep quality checks reliable and prevents false test failures after the related platform change.
Original PR description
…or class
This commit is the counterpart of https://github.com/odoo/odoo/pull/215137.
Note that the mocks of `display_name_for` in `documents` were not correct, as they were returning a list of strings instead of a list of objects `{ model: string, display_name: string }`.The test setup now gives the test user the required permission group before checking unit of measure fields. This prevents automated test failures and helps keep the inter-company sales and purchasing workflow stable after recent platform changes.
Original PR description
This commit fixes tests failure caused by odoo/odoo#212098. The mentioned PR removed all occurrences of uom fields without the uom group. That led to failing any test that tried to access uom field without having the uom group. This commit ensures that the uom group is applied on the test user before accessing uom field.
The AI field refresh action now returns linked record values in the format expected by the updated system. This prevents refreshed many-to-one AI fields from incorrectly displaying “No Access,” improving reliability for users working with AI-generated field values.
Original PR description
Purpose: -------- Following the changes in [1], the relational model uses an object instead of an array for m2o values. However, the "Refresh value" button next to an ai m2o property still returns an array, which results in showing "No Access" as m2o value. This commit changes the returned value to an object. Task-4775956 [1]: https://github.com/odoo/odoo/pull/202534