odoo/o-spreadsheet#7548

Created by fw-bot
Merged at 0da6c8d85e66386512d26d2c987116849c47cd9a

Statuses:

label
odoo:saas-18.2-17.0-fix-composer-range-selection-esc-rmbh-480578-fw
head
f49953024ddb07a70d90948f4e7540aba0d830f9
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: #7547
Forward-Port-Of: #7523