odoo/o-spreadsheet#6873

Created by fw-bot
Merged at f23bfa0ca39e021991b15d1d4bf8623abfe39fac

Statuses:

label
odoo:saas-18.3-18.0-fix-data-validation-format-adrm-453319-fw
head
2106d2093d784238628216f8bcf7059c96ad6c0e
merged
1 week ago by BI, Adrien Minne (adrm)
odoo/o-spreadsheet
18.0 #6803
saas-18.1 #6870
saas-18.2 #6872
saas-18.3 #6873

[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.

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

Forward-Port-Of: #6803