odoo/o-spreadsheet#6425

Created by fw-bot
Merged at 491426655ebf9661f19a68fd784a0a8244a05049

Statuses:

label
odoo:saas-18.1-18.0-fix-standalone-composer-locale-adrm-430088-fw
head
91af1c96b687fb003d5fef879a029226cb14bc2c
merged
8 months ago by BI, Adrien Minne (adrm)
odoo/o-spreadsheet
18.0 #6127
saas-18.1 #6425
saas-18.2 #6431
saas-18.3 #6432
saas-18.4
19.0
saas-19.1
master #6433

[FW] Standalone composer fixes

[FIX] pivot: add invalid indicator for wrong calculated measure

This commit adds an invalid indicator in the standalone composer of
the calculated measure if the formula is invalid.

Note that it's only in error if the compilation is invalid, we cannot
evaluate there as it will be different for each row/col of the pivot.

[FIX] standalone composer: localize content

The content of the standalone composer was not localized.

[IMP] tests: add additional jest matchers

This commit backports the toHaveClass and toHaveAttribute matchers.

Task: 4724069

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