Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Nov 6, 2025

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: #179883

Before this commit, the colorpicker UI would not update when switching
to grayscale or transparent grayscale. The information of the color
received to update the UI was expected to be a css value (hex). However
for grayscale and transparent grayscale, the variable name was received
instead of the value. Therefore, the colorpicker Ui would not be
updated.

It would therefore be difficult to make adjustments to these colors
from the colorpicker UI.

Steps to reproduce the issue:
- 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

X-original-commit: 73f1585
@robodoo
Copy link
Contributor

robodoo commented Nov 6, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Nov 6, 2025

@romo-odoo @dery-odoo this PR targets saas-18.3 and is the last of the forward-port chain containing:

To merge the full chain, use

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Nov 6, 2025
@romo-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Nov 7, 2025
Before this commit, the colorpicker UI would not update when switching
to grayscale or transparent grayscale. The information of the color
received to update the UI was expected to be a css value (hex). However
for grayscale and transparent grayscale, the variable name was received
instead of the value. Therefore, the colorpicker Ui would not be
updated.

It would therefore be difficult to make adjustments to these colors
from the colorpicker UI.

Steps to reproduce the issue:
- 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

closes #234778

X-original-commit: 73f1585
Signed-off-by: Denis Rygaert <dery@odoo.com>
Signed-off-by: Romaric Moyeuvre (romo) <romo@odoo.com>
@robodoo robodoo closed this Nov 7, 2025
@fw-bot fw-bot deleted the saas-18.3-16.0-fix-colorpicker-romo-475586-fw branch November 14, 2025 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants