Wednesday, October 9, 2024
7 changes · saas-17.4
Resolved issues and error corrections
This fix restores transparent table backgrounds on website pages after a Bootstrap upgrade changed their default appearance. It prevents checkout totals and similar table areas from incorrectly showing the page background color inside white cards, improving visual consistency for shoppers.
Original PR description
Since [1] when Bootstrap was upgraded to version 5.3, the `$table-bg` variable is obtained from `$body-bg` instead of being transparent as it was previously. Because of this, when a "Boxed", "Frame" or "Postcard" layout is used, and a background color is specified, that color is used as table background, even if they are nested within cards that have a white background. This commit restores the transparent table background. Steps to reproduce: - Install eCommerce - Set a "Postcard" layout - Specify a non-white background color - Add a product to the card - Proceed to the checkout page => The total area used the body background instead of the card background. [1]: https://github.com/odoo/odoo/commit/058212e12b5079eba870bde9775fe98f27928935#diff-b037a8f5f304da130ba183549bf6abf5126d1bc118033211aa865ae74d3bca51R739 opw-4203976
The image editing toolbar no longer displays the translate button. This removes an irrelevant action from the image workflow, making the editor interface clearer for users.
Original PR description
Current behavior before PR: - The translate button was visible on the image toolbar. Desired behavior after PR is merged: - Now, translate button is no longer displayed on the image toolbar. task:4224550
This fix prevents an error dialog from appearing when website editors disable the Stretch option on shaped images. It makes the image editing controls update reliably, improving the page editing experience without changing visible website content.
Original PR description
Since [1] when the "Stretch" option was added on shape, upon changing that option the ImageTools XML is re-rendered to make sure the available widths in the "Format" option are up to date, but that operation is not awaited. Because of this, the widgets might not be available yet during `updateUI`, which leads to an error. This commit fixes this by awaiting the calls to `_onImageCropped`. No problem was identified for the second call, but the missing `await` is added by this commit anyway. Steps to reproduce: - Edit a website page - Drop a "Columns" block - Select first image - Apply shape on image (e.g. Tear) - Activate "Stretch" - Set "Animation" to "On hover" - Save - Edit - Disable "Stretch" => An error dialog was displayed [1]: https://github.com/odoo/odoo/commit/c66ae88eaa275d1b87693f329d3b2622c0534c33#diff-ffb61e86e6b8297ef8997f9c605de14de896b54161c032d88a80bbaeac4f89beR6657 opw-4192761
Fixes an issue where the dependencies popover could remain stuck on screen after saving page properties. This keeps the website editing experience clean and prevents users from seeing an unclosable popover after closing the dialog.
Original PR description
task-4219465
The link editor now respects the link a user selects from the dropdown using the keyboard. This prevents the wrong link from being saved and makes editing links in Odoo's web editor more reliable.
Original PR description
### Steps to reproduce: - Open the To-do app. - Enter /link and provide a label. - Type / (e.g., /web) in the link dialog to preload available links. - Use the arrow keys to select a link from the dropdown. - Press Enter. - Edit the link again and check the result. ### Description of the issue/feature this PR addresses: Selecting a link from the dropdown with `Enter` would directly apply the link in the dialog, ignoring the selected dropdown link. ### Desired behavior after PR is merged: Selecting a link from dropdown with `Enter` now correctly updates the link dialog with the selected link, and pressing `Enter` again applies the updated link. task-4169784
Creating a purchase order no longer crashes when a user clears the company field in a multi-company setup. This avoids an interruption during purchase order entry and keeps the workflow usable even when company information is temporarily blank.
Original PR description
Currently, a traceback occurs when the user removes the company while creating a PO with a multi-company environment. To reproduce this issue: 1) Install Purchase order 2) Switch to multi-company environment 3) Create a PO and remove the company value from other information Error:- ``` ValueError: Expected singleton: res.currency() ``` When the user removes the company, its value becomes False. This leads to an empty currency record set as the currency fetches from the company. https://github.com/odoo/odoo/blob/97de468e6943b1a13998503deb436eaa38cdaafe/addons/purchase/models/purchase_order.py#L226-L230 It leads to the above traceback sentry-5939949508
This fix prevents cash change from being reported as an additional positive payment on Ecuador POS invoices and electronic invoices. It ensures invoice payment details match the actual sale, reducing confusion and improving compliance reporting accuracy.
Original PR description
With an EC company setup Open POS Add a product Go to Payment screen Select Invoice and pay using a cash payment method with an excess amount Issue: On the invoice (and xml e-invoice) there will be 2 payments, both with a positive amount We should not report the change opw-4192615