Daily updates from Odoo
Tuesday, June 4, 2024
1 change · saas-17.2
Resolved issues and error corrections
This fix prevents an error when users add an overdue activity to the Call Queue and then open or edit it. It improves reliability in activity workflows by handling cases where an old activity is automatically removed right after creation.
Original PR description
Before this commit, when adding an outdated activity from kanban activity widget, it crashed with the following error: TypeError: Cannot read properties of undefined (reading 'toLocaleString') Steps…
Before this commit, when adding an outdated activity from kanban activity widget, it crashed with the following error: TypeError: Cannot read properties of undefined (reading 'toLocaleString') Steps to reproduce: - on crm lead schedule call activity and make sure that activity is at least 1 month old - add activity to the Call Queue - try to access/edit activity This happens because of adding an outdated activity, this is automatically considered as an old activity, which leads to its deletion immediately after creation. OWL is rendering the template of `ActivityListPopover` while the activity is deleted, which is a problem because activity doesn't exist therefore its fields have been cleared, such as date_deadline that is undefined instead of a DateTime. task-3945492 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr