Daily updates from Odoo
Friday, March 22, 2024
5 changes
4 changes
Enhancements to existing features
Sales administrators now receive permission to administer canned responses used by sales teams. This helps keep standard replies consistent and easier to maintain without involving higher-level technical administrators.
Original PR description
part of task-3334899
The default view for canned responses no longer includes the shared canned response filter, making the list simpler and less cluttered for users. The update also corrects wording issues in related labels, improving clarity in the Mail app.
Original PR description
This PR removes the "Shared canned response" filter from the default filter and corrects typos on strings. task-3814167
The web test framework now checks mock network handlers in sequence, making tests easier to control and more reliable. It also fails clearly when an unexpected network request is not mocked, helping teams catch test setup issues earlier.
Original PR description
Previously, when trying to mock a network call to a route in hoot tests, we would call the most specific handler that was registered for that route and nothing else. This makes it difficult to have a single route handler that steps all network calls during the test, because the mock server would for example only invoke the mockCallKw handler for jsonRPC method calls and not the stepping handler, as the stepping handler is less specific. This commit changes the approach to what was used in the QUnit suite: the mock server calls all registered handlers from most recently registered to least recently registered until a handler returns a non undefined value. If a handler wants to return an empty response and explicitly stop further handlers from being invoked (there are currently no such cases in the code base) it can opt for returning a MockResponse.
This update improves and fixes Odoo's internal HOOT testing tools, making automated tests faster, more reliable, and easier to maintain. The changes are limited to the unit test ecosystem, reducing risk to day-to-day product behavior while helping developers catch issues more consistently.
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 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 Enterprise: https://github.com/odoo/enterprise/pull/59019 This pull requests brings various improvements and fixes to Hoot and the Odoo unit test ecosystem. See the different commit messages for more details. Note: these changes are made in stable to avoid having to support multiple versions of the HOOT API. As such, these changes are intended to be strictly limited to unit tests as to not put the rest of the code base at risk. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
1 change
Enhancements to existing features
This update refines an automated test for stock revaluation to focus only on verifying the financial value changes, rather than checking product display names. This makes the test more flexible since many companies customize product names without affecting the core revaluation functionality.
Original PR description
This fix was merged yesterday: https://github.com/odoo/odoo/pull/154239 The fix is ok but the test is testing the display name on the product. It is not necessary for the purpose of the change. Forward-Port-Of: odoo/odoo#157546