Daily updates from Odoo
Saturday, December 21, 2024
1 change · 18.0
Resolved issues and error corrections
Deleting selected attendance records from the list view now works without triggering an error. This prevents interruptions for HR users managing attendance data and keeps routine cleanup actions reliable.
Original PR description
Deleting records from the Attendances list view throws an error
Steps to reproduce:
- Attendances -> List View (Select some records) -> Actions -> Delete
Current behavior before PR:
```
TypeError: Cannot read properties of undefined (reading 'some')
at Proxy.load (https://72301827-18-0-all.runbot171.odoo.com/web/assets/debug/web.assets_web.js:229101:49) (/hr_attendance/static/src/views/attendance_list_view.js:25)
at Proxy._deleteRecords (https://72301827-18-0-all.runbot171.odoo.com/web/assets/debug/web.assets_web.js:55859:26) (/web/static/src/model/relational_model/dynamic_list.js:250)
at async ConfirmationDialog.execButton (https://72301827-18-0-all.runbot171.odoo.com/web/assets/debug/web.assets_web.js:18747:31) (/web/static/src/core/confirmation_dialog/confirmation_dialog.js:79)
```
Desired behavior after PR is merged:
Deleting selected records without errors.
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr