odoo/o-spreadsheet#5987

Created by Mehdi Rachico (mera)
Merged at 1beed801b1cb7fb422261d970796759ce8281b19

Statuses:

label
odoo:16.0-fix-autocomplete-mera
head
340f62d6c5b5586da8885c3765a92dd1c863db15
merged
9 months ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
16.0 #5987
17.0 #6134
saas-17.4 #6148
18.0 #6149
saas-18.1 #6150
saas-18.2 #6151
saas-18.3
saas-18.4
19.0
saas-19.1
master #6152

[FIX] composer: prevent autocomplete on unknown characters in composer

Before this commit, the composer incorrectly triggered autocomplete suggestions even when unknown or special characters (e.g., "é") were typed. This led to irrelevant suggestions and formula errors when selecting an option.

This commit ensures that unknown characters are properly considered, preventing autocomplete from being triggered in such cases, improving the reliability of the function autocomplete.

Task: 4652661

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