Wednesday, September 27, 2023
4 changes
Enhancements to existing features
This change updates how appointment-related test data is mocked so it no longer disrupts calendar tests when multiple modules are installed. It helps keep automated testing stable and reduces the chance of unrelated test failures slowing development.
Original PR description
The appointment module currently extends the CalendarAttendeeController from the calendar module. Since appointment adds some rpc calls in the controller, it was decided to patch the MockServer with…
The appointment module currently extends the CalendarAttendeeController from the calendar module. Since appointment adds some rpc calls in the controller, it was decided to patch the MockServer with the appointment routes to prevent having tests fail because of unimplemented routes. However, patching the MockServer is not advised by the JS team and the current patch calls ORM mock methods (like mockRead, mockSearchRead...) that depend on serverData that is solely defined on the appointment tests. This causes any test done in the calendar module using the calendar_attendee js class to fail when all modules are installed because, even though the route is mocked, it tries to fetch data that is only defined for appointment. This commit changes the approach to use the mock_server registry, defining each route individually. For routes that are called on the onWillStart hook and their mock should be doing a mockRead, it was decided to overwrite the mock inside the appointment tests. This way, it is possible to return an "empty" object for all tests that are not appointment related, and for appointment tests we simply overwrite the mock_server for that route with the original implementation and after the tests are done, we can restore the mock.
This change updates several Odoo Enterprise apps to work with the newer internal communication services after older components were removed. It helps keep appointment booking, payments, rentals, POS, website tools, and other features compatible with the latest platform foundation without changing their intended business behavior.
The task list in Project now shows planned dates immediately after the task name. This makes scheduling information easier to spot while reviewing or organizing project tasks.
Original PR description
...in task tree view. Related: https://github.com/odoo/odoo/pull/136001 task-3514409
This update adapts several accounting, reporting, document, and field service areas to a newer shared database query mechanism. It reduces the risk of errors in reports and related workflows while keeping the changes mostly behind the scenes for users.
Original PR description
Companion of https://github.com/odoo/odoo/pull/134677.
Original PR description
In the PR https://github.com/odoo/odoo/pull/136271 the files ajax.js and rpc.js has been removed. This commit adapts all the places where their exports were used. For most of the changes, it's a replace of `this._rpc({...})` by a new `useService("rpc|orm")` like pattern in the widgets.
task: 3439226