odoo/o-spreadsheet#3515

Created by fw-bot
Merged at 66436323dc06fbf9fb90f424cbeb22b8e63ef7dd

Statuses:

label
odoo:saas-16.1-15.0-fix-invalid-range-args-khpa-swO--fw
head
bd0ee476c3efb42f07b7083814d5c2404949100c
merged
1 year ago by BI, Pierre Rousseau (pro)
odoo/o-spreadsheet
saas-15.2 #3492
saas-16.1 #3515
saas-16.2 #3517
saas-16.3 #3520
15.0 #3361
saas-16.4 #3523
16.0 #3511
17.0 #3524
saas-17.1 #3539
18.0
saas-18.1
saas-18.2
saas-18.3
saas-18.4
master #3540

[FW][FIX] evaluation: behavior for invalid range arguments

Description:

When user provides an invalid sheet name in range arguments of a function, it performs computations on
data of specified range from active sheet by default and returns misleading results.

This PR changes the behavior to throw an error instead of performing any kind of computations.

Task: : 3619144

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: #3511
Forward-Port-Of: #3361