odoo/o-spreadsheet#7302

Created by fw-bot
Merged at bd32065263ecd37265a9904a985c55fe1699c1c5

Statuses:

label
odoo:19.0-17.0-fix-some-function-error-messages-adrm-469437-fw
head
ab6be56007d6b0e1831cb6105da65e9bd97a11d3
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