odoo/o-spreadsheet#4578

Created by fw-bot
Merged at 45172617b403185f4725d4958e12df2566607ca3

Statuses:

label
odoo:saas-17.1-17.0-locale-without-thousands-adrm-xulS-fw
head
55d9557dc936b5002adbfc7ce44b48c181cd6207
merged
3 months ago by BI, Adrien Minne (adrm)
odoo/o-spreadsheet
17.0 #4577
saas-17.1 #4578
saas-17.2 #4586
saas-17.3 #4587
master #4588

[FW][FIX] locale: handle undefined thousands separator

Description

This commit adds the handling of undefined thousands separator in the locales.

Also fix a bug where we couldn't canonicalize a number with multiple thousands separators.

Also add a warning in the console when an invalid locale is filtered from the side panel.

Task: : 0

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