odoo/o-spreadsheet#7523

Created by Ronakkumar Mukeshbhai Bharadiya (rmbh)
Merged at 8564f98bef9a0a9777491c4d355371f019606f3e

Statuses:

label
odoo:17.0-fix-composer-range-selection-esc-rmbh
head
dcac1359b50e17c72fab54dd5e9a1a7819a4c5d5
merged
6 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