Skip to content

Conversation

@hokolomopo
Copy link
Contributor

@hokolomopo hokolomopo commented Sep 11, 2025

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

@robodoo
Copy link
Collaborator

robodoo commented Sep 11, 2025

Pull request status dashboard

@hokolomopo hokolomopo force-pushed the 17.0-fix-some-function-error-messages-adrm branch from 8e1ff6c to 24c4f51 Compare October 2, 2025 06:03
);
} else if (typeof cell === "string") {
message = _t(
"Function [[FUNCTION_NAME]] expects number values for %s, but got an empty string.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Function [[FUNCTION_NAME]] expects number values for %s, but got an empty string.",
"Function [[FUNCTION_NAME]] expects number values for %s, but got a string.",

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
@rrahir rrahir force-pushed the 17.0-fix-some-function-error-messages-adrm branch from 24c4f51 to c740df0 Compare October 10, 2025 07:58
@rrahir
Copy link
Collaborator

rrahir commented Oct 10, 2025

robodoo r+

robodoo pushed a commit that referenced this pull request Oct 10, 2025
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

closes #7109

Task: 5059375
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
@robodoo robodoo closed this Oct 10, 2025
@fw-bot fw-bot deleted the 17.0-fix-some-function-error-messages-adrm branch October 17, 2025 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants