Tuesday, June 13, 2023
8 changes · master
Resolved issues and error corrections
This fixes several issues in how Odoo updates form values automatically when a user changes related fields. The changes improve consistency for linked records and user permission/group fields, reducing incorrect or missing values in forms.
Original PR description
This pull request collects a bunch of fixes to method `onchange2()` and fixes some features used by this method. While not all commits include specific test cases, all those fixes are covered by test cases on the upcoming new server-side form view using `onchange2()` instead of `onchange()` https://github.com/odoo/odoo/pull/124614.
This fixes a crash that could happen when mobile website visitors ended or left a live chat with a chatbot. The change helps keep the website experience stable and prevents disruption for customers using live chat on mobile devices.
Original PR description
Steps to reproduce: - Create a chatbot - Browse your website as a user in moble - Start a conversation with your chatbot - Go back to your website or close the window There was a crash because some code in chat window service makes sense only in `/web`. Task-3367338
This fixes an issue where the website editor's cleanup process could accidentally affect page elements outside the area being edited. The change helps prevent unintended modifications to surrounding page structure, making editing safer and more reliable.
Original PR description
When sanitizing the content of the editor, we sometimes move up too far and sanitize nodes that are not in the editor. This adds the proper boundaries required to contain the sanitization. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Recruitment kanban stages that have been used by applicants can no longer be deleted from the board. This prevents access errors in the time-in-stage analysis report and guides users to fold the column instead.
Original PR description
In the recruitment app, if at any point an applicant went through a kanban stage, that kanban stage will be included in the 'time in stage analysis' report. If that stage is then deleted, it will result in an access error when trying to see the report. The solution would be to archive the column instead but this not possible at the moment due to a framework limitation. Instead the button is left there with a warning telling it's not possible to delete, but to fold instead. task 3358569
This change corrects an internal accounting test reference that pointed to an account not defined in the shared test setup. It helps keep accounting test checks reliable, reducing the risk of false failures during development without changing customer-facing behavior.
Original PR description
Fix a reference to an account that is not defined in Common tests of accounting.
This update removes an old workaround in manufacturing work orders that was only needed because of a lower-level platform issue. With the platform issue fixed, quality-related work order behavior can rely on the standard process again, reducing the risk of inconsistent handling.
Original PR description
Companion of https://github.com/odoo/odoo/pull/124612
This fixes subscription and website sales dashboards so they use the updated sales report reference field. It keeps reports and dashboards correctly connected to sales and point-of-sale orders after the underlying reporting change.
Original PR description
The field `order_id` of `sale.report` has been modified to `order_reference` to allow `sale.report` to be linked to a `pos.order`. The change should also be repercuted in enterprise
Users can now move between document workspaces after deleting a task linked to a document. This prevents a missing record error and keeps document navigation working smoothly.
Original PR description
How to reproduce: 1. Link any document with a task. 2. Go to the task and then click on the 'documents' stat button. 3. Click on the document, then from the inspector panel on the right, click the related task. 4. Then delete the task, and now you are redirected back to the 'documents' 5. Click on the 'All' workspace. 6. You will get the 'missing record error'. Reason: We are trying to access the project from an already deleted task. After this commit: Now we can switch to other workspace, without any issue. task-3277089