odoo/o-spreadsheet#7506

Created by BI, Adrien Minne (adrm)

Blocked

label
odoo:saas-18.4-fix-clickable-cells-adrm
head
222d87cc12b49b782063a7ddde2d2fb3b495b99d
odoo/o-spreadsheet
saas-18.4 #7506 missing r+
19.0
master

[FIX] clickable cells: prevent overlap with grid icons

Description

If a cell has both a clickable cell and a clickable grid icon (eg. a link in a cell with a filter icon), clicking the icon would click the clickable cell.

With this commit, we reduce the clickable cell size based on the position of the icons on the cell to prevent any overlap.

Task: 4930803

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