Friday, February 9, 2024
3 changes · saas-17.1
Resolved issues and error corrections
This fixes a problem that could occur after a database was removed while users or workers still had active session data. The system now better detects missing databases and logs users out cleanly, reducing confusing errors and improving service reliability.
Helpdesk team settings now refresh correctly when users switch between teams with the pager and disable features such as SLA across all teams. This prevents outdated settings from staying on screen and makes the save process more efficient.
Original PR description
Before this commit, when the user disables a feature in helpdesk in all helpdesk teams (by using the pager to switch helpdesk teams) the window is not reloaded when it should be expected (when the SLA feature is disabled in all helpdesk team). The reason is because the `fieldsToCheck` is not reset when the record changed and so the variable keeps the value of the previous record. This commit fixes the issue by adding a `onPatched` hook inside the custom form controller to reset `fieldsToCheck`. This commit also improves a bit the performance by only checking the changes made by the user instead of checking the whole data of the record in the form view to know if the view has to be reloaded or not. Finally, it also calls the parent methods (`onWillRecordSaved` and `onRecordSaved`) since those methods defined in `HelpdeskTeamFormController` are methods overriden and not new methods in that class. Issue found during the testing of task-3549328
Users can now open locked documents without encountering an error message. This removes a disruption in the Documents workflow and helps users access restricted files more reliably.
Original PR description
Before this PR, the user will receive a traceback whenever they try to open locked documents. Technical Reason: In this commit, https://github.com/odoo/enterprise/commit/ae6604318bfbea4c389808b51d0cbf2546dc7373 user service is removed and replaced by a simple user object. After this PR, the user can easily open locked documents without any traceback. **Task**-3720837