odoo/o-spreadsheet#7285

Created by fw-bot
Merged at f727e9b41eb0bb1c186312a8dc7d9f1745fccae6

Statuses:

label
odoo:master-19.0-prettified-cursor-lul-464133-fw
head
00f3da8a6691f3053d61f440411781527f0c776d
merged
5 days ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
19.0 #7166
master #7285

[FIX] composer: set cursor on prettified formula

Steps to reproduce:
- type a long formula, e.g. =SUM(11111111, 22222222, 33333333, 44444444, 55555555, 66666666, 77777777, 88888888)
- in the top bar composer, click somewhere that won't be on the first line when prettified (in the fours)

=> the cursor is badly positioned on the prettified formula

task-5095470

Description:

description of this task, what is implemented and why it is implemented that way.

Task: TASK_ID

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: #7166