odoo/o-spreadsheet#6804

Created by BI, Adrien Minne (adrm)
Merged at 3139f26216e140157c475abf0ba39d473a5d6855

Statuses:

label
odoo:saas-18.4-fix-data-validation-format-adrm
head
77595b6af3b72755de8b9585b92788445df20ed2
merged
1 week ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
saas-18.4 #6804
master #6871

[FIX] data validation: handle cell format in auto-complete

Description

The auto complete of data validation showed the raw cell value instead of the formatted value. We should display the formatted value in the auto-complete, but still use the raw value when selecting a proposal.

The same issue was also present in the side panel.

Task: 4865661

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