Friday, July 28, 2023
1 change · master
Resolved issues and error corrections
This update prevents an error when viewing online bank account selection options before balance data has finished loading. Balances are now loaded at the right time and checked before display, improving reliability for users managing online bank synchronization.
Original PR description
Since [8723f020](https://github.com/odoo/odoo/commit/8723f020), a new way to define items in `radio_field.js` is used. The problem is that `items` are now defined asynchronous and it causes that our widget tries to load `balances` data using these `items` when we still don't have. It causes a traceback. This fix load the balances data when the component is mounted and there is 2 helpers functions that verifies if we have the data or not before displaying it. A test has been added to avoid this problem next time.