Skip to content

Conversation

fw-bot
Copy link
Collaborator

@fw-bot fw-bot commented Sep 3, 2025

Task Description

When using empty matrices for math operation (multiplication or inversion), as in the FORECAST formula, we got a traceback and the error message was not clear for the user. This commits aims to fix it by checking that the matrices used in theses operations are not empty and returning an understandable error if it's not the case.

Related Task

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: #7042
Forward-Port-Of: #6930

@robodoo
Copy link
Collaborator

robodoo commented Sep 3, 2025

Pull request status dashboard

@fw-bot
Copy link
Collaborator Author

fw-bot commented Sep 3, 2025

@anhe-odoo @rrahir cherrypicking of pull request #6930 failed.

stdout:

Auto-merging src/functions/helper_matrices.ts
Auto-merging src/functions/helper_statistical.ts
CONFLICT (content): Merge conflict in src/functions/helper_statistical.ts
Auto-merging src/functions/module_array.ts
CONFLICT (content): Merge conflict in src/functions/module_array.ts
Auto-merging src/functions/module_statistical.ts
CONFLICT (content): Merge conflict in src/functions/module_statistical.ts

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @robodoo.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@anhe-odoo anhe-odoo force-pushed the saas-18.4-17.0-evaluation-prevent_operation_on_empty_matrixes-anhe-460426-fw branch from 7645cb6 to 48910ef Compare September 3, 2025 14:11
@anhe-odoo
Copy link
Contributor

@laa-odoo : Can you have a look at this one before I r+ it ? :)

@anhe-odoo anhe-odoo force-pushed the saas-18.4-17.0-evaluation-prevent_operation_on_empty_matrixes-anhe-460426-fw branch from 48910ef to 9c88cc3 Compare September 4, 2025 08:03
Task Description

When using empty matrices for math operation (multiplication or
inversion), as in the FORECAST formula, we got a traceback and the
error message was not clear for the user. This commits aims to fix
it by checking that the matrices used in theses operations are not
empty and returning an understandable error if it's not the case.

Related Task

Task: 5001658
X-original-commit: fee8728
@anhe-odoo anhe-odoo force-pushed the saas-18.4-17.0-evaluation-prevent_operation_on_empty_matrixes-anhe-460426-fw branch from 9c88cc3 to 481adf8 Compare September 4, 2025 10:41
@laa-odoo
Copy link
Collaborator

laa-odoo commented Sep 4, 2025

@laa-odoo : Can you have a look at this one before I r+ it ? :)

IMO OK

@anhe-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Sep 4, 2025
Task Description

When using empty matrices for math operation (multiplication or
inversion), as in the FORECAST formula, we got a traceback and the
error message was not clear for the user. This commits aims to fix
it by checking that the matrices used in theses operations are not
empty and returning an understandable error if it's not the case.

Related Task

closes #7048

Task: 5001658
X-original-commit: fee8728
Signed-off-by: Rémi Rahir (rar) <[email protected]>
Signed-off-by: Hendrickx Anthony (anhe) <[email protected]>
@robodoo robodoo closed this Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants