Saturday, September 6, 2025
3 changes · saas-18.4
Resolved issues and error corrections
The website homepage tour now includes a step for the theme options tab, helping confirm that theme-related settings open correctly. This reduces the chance of theme-specific issues reaching users and restores expected behavior for theme homepage tours.
Original PR description
This commit adds the `goToTheme` step to the homepage tour. This step is used to showcase the theme features and to ensure no theme specific error on that tab in `test_02_homepage_tour_every_theme` test.
This fixes an issue where loyalty discounts could use slightly more points than intended because of decimal precision differences. Loyalty point calculations now align with the sale currency precision, helping customers see accurate point usage on sales orders.
Original PR description
## Version
18.0+
## Issue
A slightly higher number of loyalty points might be used when python division can't be precise enough.
## Steps to reproduce
- Create a new Discount & Loyalty program:
- Program Type: Loyalty Cards;
- Conditional rules: None;
- Rewards: 1:
- Reward Type: Discount;
- Discount: 0.03$ per point on Order.
- Create a new Loyalty Card for any partner (remember which one):
- Change the points balance for 3030.
- Create a new Quotation for the previously selected partner as customer:
- Add a product:
- Use any product;
- Quantity: 1;
- Unit Price: 3000.0;
- Taxes: None.
- Apply the Reward and Confirm the SO;
- Check Loyalty Card's details at the bottom of the SO.
opw-4928963
Forward-Port-Of: odoo/odoo#219640The Unsplash image search now safely ignores duplicate images returned in the same result set. This prevents the media dialog from crashing when users search for images, improving reliability for website content editing.
Original PR description
This commit fixes an OwlError when we try to render the images received from Unsplash after a search. The issue is that Unsplash can send duplicate images in the same batch of images. When we render those in a `t-foreach` and use the image `id`s as the keys, we get a duplicate key error. This is fixed by expanding on the previous filtering code, which ignored duplicates over multiple batches. We now ignore duplicates within batches as well. At the time of writing, Unsplash is sending us duplicate images on a search for "Inventory". opw-5027032 P.S., this is really just an extension of this PR here #224059. Specifically, the 18.0 FW. In 18.0, the Unsplash code that I changed in the original PR (#223789) was moved from `addons/web_unsplash/static/src/components/media_dialog/image_selector.js` to `(...)/components/media_dialog_legacy/image_selector.js`. This PR fixes the "copy" of that code that got moved. Forward-Port-Of: odoo/odoo#224541