Skip to content

Conversation

fw-bot
Copy link
Collaborator

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

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 and SORTN while they have different number of mandatory arguments
  • the message said we expected a number or a range while is_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

Forward-Port-Of: #7163
Forward-Port-Of: #7135

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` and `SORTN` while they
    have different number of mandatory arguments
- the message said we expected `a number or a range` while `is_ascending`
    is a boolean

Task: 5085267
X-original-commit: 716824c
@robodoo
Copy link
Collaborator

robodoo commented Sep 17, 2025

Pull request status dashboard

@fw-bot
Copy link
Collaborator Author

fw-bot commented Sep 17, 2025

@hokolomopo @LucasLefevre this PR targets master and is the last of the forward-port chain containing:

To merge the full chain, use

@robodoo r+

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

@pro-odoo
Copy link
Collaborator

robodoo r+

robodoo pushed a commit that referenced this pull request Sep 19, 2025
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` and `SORTN` while they
    have different number of mandatory arguments
- the message said we expected `a number or a range` while `is_ascending`
    is a boolean

closes #7165

Task: 5085267
X-original-commit: 716824c
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
Signed-off-by: Adrien Minne (adrm) <[email protected]>
Signed-off-by: Pierre Rousseau (pro) <[email protected]>
@robodoo robodoo added the 19.1 label Sep 19, 2025
@robodoo robodoo closed this Sep 19, 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