-
- Downloads
[FIX] web: introduce parser for many2one_reference field
ISSUE: When in debug mode, user have access to the "External Identifiers" view. The search bar allows searching using "Record ID" which is a `many2one_reference` field. When user inputs a search query that can't be converted to number, "Record ID" option is still available to the user. It results to traceback when it's selected because the UI is creating an invalid "domain" which makes the server search for a string on an integer (many2one_reference) field. Check the video for illustration: https://youtu.be/XEPUXHcjeRI SOLUTION: We make sure that many2one_reference field is properly converted when generating the domain from the search_bar by using the integer parser. This basically excludes many2one_reference field from the search options when the input query is not a valid integer. See it in action: https://youtu.be/NQ-YrK6tDH0 closes odoo/odoo#104095 Task-id: 3005837 Signed-off-by:Mathieu Duckerts-Antoine <dam@odoo.com>
Please register or sign in to comment