Wednesday, March 20, 2024
2 changes · master
Resolved issues and error corrections
Corrected demo planning entries so allocated hours are calculated consistently instead of appearing as zero. This helps sample data better reflect realistic schedules, contracts, and sales planning behavior for demonstrations and testing.
Original PR description
Some planning slots from demo data had allocated hours = 0. For some, it was because the resource had no contract at that period. For others, because they took place on saturdays. Finally, some had an allocated percentage of 0. They where created with allocated hours = 4, but then a `_read_group` called `_compute_allocated_hours`, and because the key `sale_planning_prevent_recompute` was in the context, it was not computed. But then `_compute_allocated_percentage` was called, which didn't make sense, and resulted in weird interactions. task-3321377
This update improves the internal test suite for Odoo's Gantt view by reducing timing-related failures and using more suitable test helpers. It helps make future changes safer and more predictable, without changing day-to-day user features.
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 Part 10: https://github.com/odoo/odoo/pull/155639 Part 11: https://github.com/odoo/odoo/pull/156255 / https://github.com/odoo/enterprise/pull/58135 Part 12: https://github.com/odoo/odoo/pull/156869 Community: https://github.com/odoo/odoo/pull/157863 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