Daily updates from Odoo
Sunday, May 31, 2026
1 change
Resolved issues and error corrections
This update resolves a bug that occurred when a key in the external_ids field was empty. Previously, the system would throw an error attempting to access an element from an empty list. Now, the system correctly defaults to [None] when the key is missing, ensuring reports function as expected.
Original PR description
When the key exists external_ids with an empty, the get method returns the empty list instead of defaulting to [None]. code and their output for empty list ``` (Pdb) (external_ids.get(self[5].id) or [None])[0] (Pdb) external_ids.get(self[5].id, [None])[0] *** IndexError: list index out of range (Pdb) external_ids.get(self[5].id) [] (Pdb) external_ids.get(self[5].id,[None]) [] (Pdb) external_ids.get(self[5].id) or [None] [None] ``` Forward-Port-Of: odoo/enterprise#117616