Monday, October 28, 2024
2 changes · master
Enhancements to existing features
The timesheet leaderboard now labels totals with the relevant month abbreviation, making it clearer which period the figures refer to. This small wording improvement helps users interpret leaderboard results more quickly and reduces ambiguity.
Original PR description
- Change "total" to "timesheets [month abbreviation]". task-3906433
This update renames an internal controller setting from “json” to “jsonrpc” to better reflect how Odoo web requests work. It does not change how users or integrations call these features, but it reduces confusion for developers and helps prevent future misconfiguration.
Original PR description
The json type is actually Odoo-RPC over Json-RPC. The "type='json'" name has been a source of confusion for years now. Fix it. It changes nothing to the way those controller are called. It only changes the way those controllers should be defined in the source code. New occurences of `@route(type='json')` are going to raise an error for an unknown controller type. If you want a cross-version compatible thing you can do: ```py @route(type='json' if odoo.release.version_info < (18, 0) else 'jsonrpc') ``` or ```py @route(type=odoo.http.JsonRPCDispatcher.routing_type) ``` A upgrade-code script exists '18.1-02-route-jsonrpc.py', use it via the new command line: ./odoo-bin code_upgrade. task-4257153