odoo/o-spreadsheet#6534

Created by fw-bot
Merged at 0af60f4d00651c36d71413de99972232869f5a3a

Statuses:

label
odoo:saas-18.3-saas-18.1-fieldnamesortedcolumn-lul-440652-fw
head
699fe905482783ff07d47d1449bb499c3fbdd67f
merged
1 week ago by BI, Lucas Lefèvre (lul)
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