Thursday, September 7, 2023
5 changes · master
Resolved issues and error corrections
Calendar events that include properties fields can now be opened without causing an error. This improves reliability for users working with customized calendar records in Odoo.
Original PR description
Before this commit, in a calendar view with a properties field, a crash will be display when you click on an event. 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
Fixed an issue where automated server actions saved the display label of a selection option instead of its actual stored value. This prevents crashes when those actions update records, making automation more reliable for users.
Original PR description
Server actions that 'update the record' have a mechanism to allow users to easily select a selection value if the field they want to update is a selection field (instead of having to type the technical value directly). Before this commit, this mechanism incorrectly stored the selection's name instead of the value (e.g. 'Done' instead of '01_done'), making the write crash when the action was run.
This fix restores an error-handling behavior that some older web requests still depend on. It helps ensure errors can be recognized as handled, reducing the risk of unnecessary error popups or disrupted workflows for users.
Original PR description
Previously we removed some code related to handling errors in legacy RPC, that would wrap errors in an object and give them an event that could be defaultPrevented to mark the error as handled, but this code is still needed. This commit restores it.
The auto-reconcile wizard now works even when users leave the start date blank. In that case, reconciliation starts from the earliest possible date, preventing unnecessary errors or manual date entry.
Original PR description
…in if not set In the auto-reconcile wizard, user should be able to let from_date empty, in this case we will auto-reconcile since date.min.
Opening a Knowledge article from an embedded calendar view no longer crashes. This keeps calendar-based Knowledge content accessible and ensures article properties display correctly.
Original PR description
Since PR https://github.com/odoo/odoo/pull/114024, open a knowledge article from an embeded calendar view display a crash. Because the extension knowledge.ArticleItemsCalendarCommonPopover.body should use fieldInfo.name instead of fieldName. FielName is not defined anymore. Since Commit https://github.com/odoo/odoo/commit/29c7b23e22317ae06ec4052dd3edd9e2478e14ab, PropertiesField need the definition field (parent_id) to generate the separator.