Friday, April 7, 2023
2 changes · master
Code cleanup and technical improvements
This update replaces older helper code with standard JavaScript in several Odoo apps. It should make the codebase easier to maintain while keeping existing business features and user workflows unchanged.
The web interface can now customize how related records are fetched for autocomplete dropdowns. This allows business-specific details, such as showing a tool icon for material resources instead of an employee image, making choices clearer for users.
Original PR description
Adding a hook on the promise so it is possible to fetch more specific data on a record, not only the name and id --- Need a custom modification from web Many2XAutocomplete When the resource is a 'material' not a 'user' i need to be able to display an fa wrench icon in place of the employee image in the option dropdown. I need another ORM call than a simple name_search. Thus the creation of the function createPromise that will allow me to fetch the resource.resource 'resource_type' See https://github.com/odoo/enterprise/pull/38027 Task-3072858 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr