odoo/o-spreadsheet#6181

Created by fw-bot
Merged at 762e1a6765a5ebbd8faaed6a2929f354206d7060

Statuses:

label
odoo:saas-18.2-17.0-color-picker-paste-hex-flda-431476-fw
head
844bbc5d975734151878afac0416dc37516fc26a
merged
2 months ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
17.0 #6104
saas-17.4 #6177
18.0 #6178
saas-18.1 #6179
saas-18.2 #6181
saas-18.3
saas-18.4
master #6182

[FW][IMP] color-picker: remove additional #

How to reproduce
Copy a color code (i.e. #E6F2F3)
Create a custom table
Edit its color using the color picker
Double-click the current code and replace it by #E6F2F3
As the double-click doesn't grab the #, you get ##E6F2F

task-4687930

Description:

description of this task, what is implemented and why it is implemented that way.

Task: 4687930

review checklist

  • [ ] feature is organized in plugin, or UI components
  • [ ] support of duplicate sheet (deep copy)
  • [ ] in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • [ ] in model/UI: ranges are strings (to show the user)
  • [ ] undo-able commands (uses this.history.update)
  • [ ] multiuser-able commands (has inverse commands and transformations where needed)
  • [ ] new/updated/removed commands are documented
  • [ ] exportable in excel
  • [ ] translations (_t("qmsdf %s", abc))
  • [ ] unit tested
  • [ ] clean commented code
  • [ ] track breaking changes
  • [ ] doc is rebuild (npm run doc)
  • [ ] status is correct in Odoo

Forward-Port-Of: #6104