Wednesday, July 5, 2023
3 changes · master
Resolved issues and error corrections
Users can now open planned shifts from a project update and use the Plan Orders button without hitting an error. The fix updates how open tasks are identified and places the logic in the module that has the right project dependencies.
Original PR description
Before this commit, when the user goes to project update of a Project A and click on `Planned` stat button to display the shifts linked to that Project A. Then the user will click on `Plan Orders` button, a traceback will occurs saying `is_closed` field does not exist in `project.task` model.
This commit fixes the issue by changing `('is_closed', '=', False)` in the domain used into `('state', 'not in', ['1_done', 1_canceled])` since `is_closed` has been recently removed. Also, this commit moves that code in sale_project_forecast because `project.task` model does not exist in `sale_planning` module since `project` module is not in the dependencies of that module.This update fixes issues in accounting asset and field service tests caused by changes to form behavior. It helps ensure these areas continue working reliably after related platform updates.
Original PR description
Companion of https://github.com/odoo/odoo/pull/127400
This update makes automated checks for the grid view more reliable by waiting until the screen component is fully ready before validating results. It helps reduce false test failures and supports smoother ongoing maintenance without changing user-facing behavior.
Original PR description
Before this commit, the assert done in 2 tests could failed because the component is not yet fully mounted/re-rendered. This commit adds a next tick to be sure we wait the component be mounted and rendered before doing the asserts.