odoo/o-spreadsheet#6124

Created by BI, Adrien Minne (adrm)

Blocked

label
odoo:18.0-copy-paste-excel-fix-adrm
head
20b244648dd02f7ce25951b2828147afc3fe8167
odoo/o-spreadsheet
18.0 #6124 missing r+
saas-18.1
saas-18.2
saas-18.3
master

[FIX] clipboard: fix copy-paste from Excel

Description

When copying, we put some data-osheet in the clipboard to enable cross-sheet copy-paste. Somehow, somewhy, after we paste it in Excel Desktop, the data-osheet is put back in the clipboard by Excel no matter what we copy in the sheet.

This commit adds a bit of sanity check before getting the data-osheet from the clipboard content.

Task: 4730469

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