odoo/o-spreadsheet#7440

Created by fw-bot
Merged at 3bfeb2c7f05965d0d3cfd15a6d3c96b7761f0fa9

Statuses:

label
odoo:saas-18.3-saas-18.2-fix-composer-unmount-inactive-rmbh-469346-fw
head
7b10609cc04c253dfab37dbdf08d5d3624da2854
merged
2 months ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
saas-18.2 #7289
saas-18.3 #7440
saas-18.4 #7441
19.0 #7442
saas-19.1
master #7443

[FIX] composer: set editionMode to inactive when composer is unmounted

Description:

Steps to reproduce:
- Open the CF side panel and edit a StandaloneComposer inside a color scale.
- Switch the sheet. The panel closes, so the composer is unmounted.
- Previously, the composer remained in editing mode after unmount.

Current behavior before PR:
- Unmounting the composer did not set editionMode to inactive.
- This caused focus issues in other parts of the UI.

Desired behavior after PR is merged:
- Unmounting the composer sets editionMode to inactive.
- Focus and selection are now properly released.

Task: 5149215

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