odoo/o-spreadsheet#3923

Created by fw-bot
Merged at efc14e7a2f560cd55b086204eaf3d90d4f4e4160

Statuses:

label
odoo:master-16.0-fix-autocomplete-weird-behavior-dhrp-mNRw-fw
head
1e4c4771b390bde7db04de41a6a1c418559edfe4
merged
1 year ago by BI, Dhrutik Patel (dhrp)
odoo/o-spreadsheet
saas-16.3 #3866
15.0
saas-16.4 #3867
16.0 #3834
17.0 #3868
saas-17.1 #3886
18.0
saas-17.2 #3887
saas-18.1
saas-18.2
saas-18.3
saas-18.4
master #3923

[FW][FIX] Composer: weird behavior of autocomplete dropdown

Description:

Previously, when users typed "=S" in the composer, clicked outside, then started editing another cell, the autocomplete dropdown remained visible. Similarly, when they typed "=SUM(" and pressed enter, then edited another cell, the function assistant persisted.

This PR addresses the problem by ensuring that state values are set to false whenever the composer is not in edit mode.

Task: : 3789473

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: #3887
Forward-Port-Of: #3834