Friday, November 7, 2025
2 changes · 18.0
Resolved issues and error corrections
The color picker now refreshes properly when users choose grayscale, transparent grayscale, or theme colors. This makes it easier to fine-tune background and design colors because the on-screen controls now match the selected color reliably.
Original PR description
Before this commit, the colorpicker UI would not update when switching to some colors (grayscale, transparent grayscale, theme colors). It would therefore be difficult to make small changes to those colors. This commit make the colorpicker update correctly. Step to reproduce the bug (example with grayscale colors): - Add a snippet - Change the background color to a custom color (the colorpicker interface was updated to match the color) - Change the background color to a grayscale color (the colorpicker interface was not updated to match the color) task-3806989 Forward-Port-Of: odoo/odoo#179883
This change stops Odoo from triggering an unnecessary internal update when a product variant already has the same attribute values. It reduces avoidable processing, which can improve performance and make product operations a little faster and lighter.
Original PR description
Description of the issue/feature this PR addresses: Method `product.template._create_variant_ids()` triggers a `write()` on `product.product.product_template_attribute_value_ids` which will, in turn, invalidate the cache. This cache invalidation is unnecessary if the new value is the same as the old value. Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#233677