-
-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bi_view_editor: wrong generation of ID column #881
Labels
Comments
gurneyalex
changed the title
[15.0] BI View Editor: wrong generation of ID column
BI View Editor: wrong generation of ID column
May 21, 2024
gurneyalex
changed the title
BI View Editor: wrong generation of ID column
bi_view_editor: wrong generation of ID column
May 21, 2024
for your information @astirpe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BI View Editor
The id column generated by BI View Editor using
CAST(row_number() OVER () as integer) AS id
is broken and should be replaced. It generates non stable IDs so when you group or filter records, Odoo will display results not matching the filter or the group in its results.This issue existed on bi_sql_editor and was fixed by using a subselect to get the rows and then inject the ids.
See method _prepare_request_for_execution on model bi.sql.view for a correct implementation
reporting-engine/bi_sql_editor/models/bi_sql_view.py
Lines 618 to 638 in e8df660
Affected versions: all versions
The text was updated successfully, but these errors were encountered: