Saturday, January 25, 2025
3 changes · saas-18.1
Resolved issues and error corrections
The call recording button in the messaging composer now keeps its intended shape when active. This prevents a visual distortion where the button became square, improving interface consistency for users making calls.
Original PR description
Purpose of this commit: The call record button, when active, was unintentionally assigned an aspect ratio of 1, causing its height and width to become equal. This commit fixes the issue. Before/After   --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix restores support for an older JSON route setting so existing customizations do not fail unexpectedly after upgrading. It also adds a clearer warning and error message to help teams migrate smoothly to the newer setting.
Original PR description
Commit 67b6ef3 changed `@route(type='json')` for `@route(type='jsonrpc')` but with no deprecation warning. Using `@route(type='json')` resulted in a (not so obvious) AssertionError. In this work, we restored `type='json'` as a deprecated alias to `type='jsonrpc'`, the warning is only logged once. We also improved the assertion message so it lists the valid types. If you need cross-version compatibility (down to 16.0) you might also do: from odoo.http import JsonRPCDispatcher @route(..., type=JsonRPCDispatcher.routing_type) There's also a upgrade-code script to help you change all `type='json'` to `type='jsonrpc'`: odoo-bin upgrade_code --help odoo-bin upgrade_code --script route-jsonrpc task-4257153
Subcontracting receipts no longer show the same Detailed Operation button twice on product moves. This reduces confusion for users processing purchase receipts and makes the screen clearer.
Original PR description
Issue: =========== Currently, the 'Detailed Operation' button appears twice on each product move for subcontracting receipts. Steps to Reproduce: =========================== 1. Create a Bill of Materials (BOM) with the type set to 'Subcontracting'. 2. Create a Purchase Order (PO) for the product associated with the BOM. 3. Navigate to the receipt for that PO. 4. Observe that the 'Detailed Operation' button appears twice for each move. With this commit: ===================== A duplicate detailed operation button was displayed in each product move for subcontracting receipts due to code duplication, leading to redundancy and confusion. This fix removes the extra button to ensure a clear and intuitive UI. task-4467313