Tuesday, April 29, 2025
1 change · saas-17.4
Resolved issues and error corrections
Users can now change their language in My Profile without triggering an error after viewing certain Sign reports. This prevents an unexpected crash and keeps profile updates working smoothly in multilingual setups.
Original PR description
When the user changes the language in My Profile and tries to save,
a traceback will appear.
Steps to reproduce the error:
- Install ``sign`` and ``hr`` module.
- Activate multi languages
- Go to Sign > Reports > Green Savings
- Click on the profile icon > My Profile > Change language > Save
Traceback:
```
File "/home/odoo/src/odoo/saas-18.2/addons/web/controllers/action.py", line 90, in load_breadcrumbs
if act['res_model'] and act['type'] != 'ir.actions.client':
KeyError: 'res_model'
```
https://github.com/odoo/odoo/blob/e901707961cca623acf646f5272c156928125f43/addons/web/controllers/action.py#L89
Here, ``ir.actions.report`` action does not have ``res_model``.
So, it will lead to the above traceback.
sentry-6556212172
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr