odoo/o-spreadsheet#7165
Created by fw-bot
Merged
at 7bfaed390fb6850147863082704934664b959d34
Statuses:
- label
- odoo:master-17.0-wrong-error-sort-adrm-464107-fw
- head
- 15d14b733aba78662874d0f815be52dc439d26b6
- merged
- 1 day ago by BI, Pierre Rousseau (pro)
odoo/o-spreadsheet | |
---|---|
17.0 | #7135 |
18.0 | #7145 |
saas-18.1 | #7149 |
saas-18.2 | #7150 |
saas-18.3 | #7152 |
saas-18.4 | #7163 |
19.0 | #7164 |
master | #7165 |
[FIX] functions: wrong error message for `SORT`
Description
There was a bunch of problems in the errors messages of the SORT
and SORTN
functions:
- we were using %d, which isn't supported
- the index displayed is always wrong
- we display the same index for both
SORT
andSORTN
while they have different number of mandatory arguments - the message said we expected
a number or a range
whileis_ascending
Task: 5085267
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