Wednesday, June 21, 2023
7 changes · master
Resolved issues and error corrections
The Point of Sale app now waits until it is fully displayed before loading fonts, preventing occasional startup crashes. This improves reliability for cashiers opening or using the POS interface.
Original PR description
After the merging of PosStore and PosGlobalState, loading fonts crashes indeterministically. With this fix, we make sure the pos app is mounted, which means that document.body is available which is required by the font loader. Runbot Error ID: 22519
This change removes obsolete HR code that was no longer responsible for opening employee chats. The existing chat widget continues to handle the feature, reducing maintenance risk without changing the user experience.
Original PR description
OpenChat feature in `hr` is managed by the view widget "hr_employee_chat", which is added in kanban template. The override of Kanban View to add openChat feature is not called at all, so this commit removes this dead code, and the js_class, as its only purpose was adding openChat. https://github.com/odoo/enterprise/pull/42897
A naming mismatch introduced during refactoring has been corrected in the preparation display. This helps ensure the point-of-sale preparation screen opens and works as expected without disruption.
Original PR description
During refactoring, a template name adaptation was forgotten. The error has now been corrected.
The appraisal area no longer includes unused code for opening employee chats, since that chat feature is already handled elsewhere. This reduces maintenance complexity without changing how users interact with appraisals or chats.
Original PR description
OpenChat feature in `hr` is managed by the view widget "hr_employee_chat", which is added in kanban template. The override of Kanban View to add openChat feature is not called at all, so this commit removes this dead code, and the js_class, as its only purpose was adding openChat. https://github.com/odoo/odoo/pull/125753
This update adds coverage to ensure the app name field is automatically ready for typing when users create a new app in Studio. It helps prevent a small usability regression where users had to manually click the input before entering the app name.
Original PR description
PURPOSE since commit: ff870d8 autofocus hook was not working in some cases for example: open studio -> create new app -> dialog to enter app name is displayed but input do not have focus. SPEC Revert commit and move to the previous implementation for autofocus hook which was working without checking dependency computation. TASK 2610975
The recruitment time-in-stage report now skips deleted stage references instead of failing when historical chatter points to a removed stage. This keeps reporting available even after recruitment stages are cleaned up or reorganized.
Original PR description
Time in stage analysis report bases itself on stage changes in the mail chatter. If you delete a stage, it will search for the lost reference and crash. Solution is to ignore the column if it does not exist anymore. task 3358569
Opening a report in Studio no longer crashes when there are no records available to preview. Instead, users see a clear warning notification, helping them understand the issue without encountering an error screen.
Original PR description
PURPOSE When opening a report in the studio when there is no record available then the studio throws traceback because current implementation of the report the editor assumes that there will always be a record to show in the report but there can be a case when there is no record and the user opens the report editor from the studio. SPEC When there is no record and the user tries to open the report editor from the studio then it should show danger notification. TASK 2612024