odoo/o-spreadsheet#6849

Created by BI, Adrien Minne (adrm)
Merged at 53296c8422c1e21923f7a7c455080739333c4e86

Statuses:

label
odoo:17.0-fix-delete-cell-pivot-adrm
head
3e8722b97db6544c7539478ef6c8ada164baf7e7
merged
4 days ago by BI, Rémi Rahir (rar)
odoo/o-spreadsheet
17.0 #6849

[FIX] clipboard: insert cells bugged with array formulas

Description

The insert/delete cell features, as well as the drag & drop of rows/columns is implemented with the clipboards. Under the hood, they do cut/paste operations.

But some behaviour is specific to copy/paste and should not be applied to those features: here we should not copy part of array formulas. We don't want an "insert cell" inside an array formula to copy a part of the values of the array formula.

Task: 4938311

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