odoo/o-spreadsheet#7553

Created by fw-bot
Merged at 641d1923a1b5601da2192cd01f8b4905d31a5aa7

Statuses:

label
odoo:19.0-17.0-fix-composer-range-selection-esc-rmbh-480734-fw
head
efc07c364e783770c90bb3a0ed79df850d128840
merged
5 days ago by BI, Rémi Rahir (rar)
odoo/o-spreadsheet
17.0 #7523
18.0 #7547
saas-18.2 #7548
saas-18.3 #7551
saas-18.4 #7552
19.0 #7553
master #7554

[FIX] composer: keep edition mode inactive on cursor selection change

Description:

Current behavior before PR:
- Changing the composer cursor selection triggered a switch to edition mode,
even when the composer was inactive.
- This caused unwanted activation of editing while simply moving the selection.

Desired behavior after PR is merged:
- Selection changes no longer modify the edition mode when the composer is inactive,
ensuring the edition state remains stable.

Task: 5354541

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: #7548
Forward-Port-Of: #7523