odoo/o-spreadsheet#6433

Created by fw-bot
Merged at 95435f2f93f2695ec4c5ac89a44a22852cef4a79

Statuses:

label
odoo:master-18.0-fix-standalone-composer-locale-adrm-436718-fw
head
595dd9d5029cb75e510b528b3b184441d12aaef0
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: #6431
Forward-Port-Of: #6127