Friday, April 4, 2025
2 changes · saas-18.1
Resolved issues and error corrections
Chart clicks are now handled consistently so selecting a chart legend no longer triggers the broader chart action by mistake. This prevents unintended dashboard interactions and makes chart controls behave more predictably for users.
Original PR description
We have several click listeners on charts: one on the legend, one on all odoo chart elements, and one on the chart itself in dashboard. The first two are handled in ChartJS, and the last one is handled in a `t-on-click`. The problem is that the `t-on-click` was called for every click on the chart, even if the click was on the legend. This is because ChartJS handles events at the next animation frame, so the `t-on-click` was always called before the ChartJS click listener. To fix this, we also handle the click on the chart inside ChartJS. Task: [4636147](https://www.odoo.com/web#id=4636147&cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form) --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
When importing a CSV referencing a related record, an error occurs if the system attempts to create a missing record, and the exception message is incorrectly translated. **Steps to reproduce:** - Install the `l10n_ro` module. - Switch the user's language to **Romania**. - Import [this](https://drive.google.com/file/d/1D5OZGeCICaySijNVxhSeopru--1iwU96/view?usp=sharing) CSV file into the Journal model (`account.journal`). - Click `Test` button, select `"Creează valori noi"` for `Default Ac
Original PR description
When importing a CSV referencing a related record, an error occurs if the system attempts to create a missing record, and the exception message is incorrectly translated. **Steps to reproduce:** -…
When importing a CSV referencing a related record, an error occurs if the system attempts to create a missing record, and the exception message is incorrectly translated. **Steps to reproduce:** - Install the `l10n_ro` module. - Switch the user's language to **Romania**. - Import [this](https://drive.google.com/file/d/1D5OZGeCICaySijNVxhSeopru--1iwU96/view?usp=sharing) CSV file into the Journal model (`account.journal`). - Click `Test` button, select `"Creează valori noi"` for `Default Account`, and click again. - Observe the error. **Error:** `ValueError: unsupported format character ''' (0x27) at index 74` The Romanian translation contains an incorrect use of `'%%' (câmp)` leads to formatting issues - [1]; the correct placeholder `'%%(field)s'` should be used to match the original message format. This commit corrects the Romanian translation to properly format the field name. [1] - https://github.com/odoo/odoo/blob/4bdbe64928259ddffc93f9c0e60113fc1673e203/odoo/addons/base/i18n/ro.po#L21877 Sentry - 6494943085