Sunday, March 3, 2024
2 changes · master
Enhancements to existing features
This update improves Odoo's internal web testing tools so automated tests run more reliably and with fewer delays or false errors. It fixes test cleanup, browser-event simulation, asset loading behavior, and helper utilities, helping developers catch issues faster without changing end-user functionality.
Original PR description
Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4: https://github.com/odoo/odoo/pull/153203 Part 5: https://github.com/odoo/odoo/pull/153425 Part 6: https://github.com/odoo/odoo/pull/153700 Part 7: https://github.com/odoo/odoo/pull/154054 Part 8: https://github.com/odoo/odoo/pull/154579 Part 9: https://github.com/odoo/odoo/pull/155073 This pull requests brings various improvements and fixes to Hoot and the Odoo unit test ecosystem. See the different commit messages for more details. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Miscellaneous changes
**Current behavior:** When creating a new helpdesk team, if you have selected Random or Balanced as an Assignment Method and delete the default user in the avatar selection box then switch to the Manual assignment method option, you will simultaneously be unable to assign a user (as the selection box disappears) and required to provide at least one user before being saving. **Expected behavior:** The form should not require a value for a field when the UI does not permit one to be entered.
Original PR description
**Current behavior:** When creating a new helpdesk team, if you have selected Random or Balanced as an Assignment Method and delete the default user in the avatar selection box then switch to the…
**Current behavior:** When creating a new helpdesk team, if you have selected Random or Balanced as an Assignment Method and delete the default user in the avatar selection box then switch to the Manual assignment method option, you will simultaneously be unable to assign a user (as the selection box disappears) and required to provide at least one user before being saving. **Expected behavior:** The form should not require a value for a field when the UI does not permit one to be entered. **Steps to reproduce:** 1. In the Helpdesk app, go to configuration -> Helpdesk Teams 2. Create a new team, select either Random or Balanced as the Assignment Method, delete the default value, then switch back to Manual assignment 3. Try to save the record **Cause of the issue:** member_ids is a required attribute of the helpdesk.team model despite the form view hiding the selection box when the Manual assignment option is selected (implying it is not required). **Fix:** Create an _onchange() method which populates the member_ids field with a default value when the user switches to Manual assignment with no member_ids assigned. opw-3672587 Forward-Port-Of: odoo/enterprise#57687 Forward-Port-Of: odoo/enterprise#55767