odoo/o-spreadsheet#6533

Created by fw-bot
Merged at 500396c3bdeb76bad62bbc72a9df2cc6073420e1

Statuses:

label
odoo:saas-18.2-saas-18.1-fieldnamesortedcolumn-lul-438517-fw
head
990161bef3a8e7c69b756c6ba4206fbc0afd3009
merged
1 week ago by BI, Pierre Rousseau (pro)
odoo/o-spreadsheet
saas-18.1 #6473
saas-18.2 #6533
saas-18.3 #6534
master #6540

[FW][FIX] pivot: support sorted column with field name

Description:

Fix for an upgrade issue: the sortedColumn measure was not updated from using fieldName to using id. If the sortedColumn measure matches a measure fieldName in the definition, update it to use the measure's id instead of its fieldName.

Task: 4816705

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