odoo/o-spreadsheet#4503

Created by BI, Vincent Schippefilt (vsc)
Merged at 5599adc59c987bac5b43d4d7e17a4e95734c35b9

Statuses:

label
odoo:master-copy-pivot-formula-vsc
head
e9ddc3e1dfe2732ec5720e8e2321b3ebb0145e1c
merged
1 month ago by BI, Pierre Rousseau (pro)
odoo/o-spreadsheet
master #4503

[IMP] copy: Spreaded pivot gives fixed fomula on paste

When copying a/some cells that belong to a spreaded pivot, the intention of the user is usually to have THAT value pasted somewhere else, that means it needs to be fixed on the dimentions that constitutes the value.
This commits converts the pivot formulas from the copied cells into fixed pivot formulas.

Task: 3965047

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