odoo/o-spreadsheet#7298

Created by fw-bot
Merged at ac34bd72f2058c6f73b9012df2cde140a6147a7d

Statuses:

label
odoo:saas-18.2-17.0-fix-some-function-error-messages-adrm-469377-fw
head
467929535fa1d196407485c6a34ecb0e05d0b39e
merged
3 months ago by BI, Adrien Minne (adrm)
odoo/o-spreadsheet
17.0 #7109
18.0 #7290
saas-18.2 #7298
saas-18.3 #7299
saas-18.4 #7301
19.0 #7302
saas-19.1
master #7303

[FIX] functions: fix LINEST error massage

Description

The functions using the helper tryCastAsNumberMatrix had a wrong error message:

  • the two arguments in the translated string were inverted
  • an argument of _t was typeof cell, which isn't translated
  • the other argument of the _t was something like the first argument (data_y), which wasn't translated either

Task: 5059375

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: #7290
Forward-Port-Of: #7109