Skip to content

[16.0][FIX] web_group_by_percentage: Added exclusion of non-field columns#3397

Merged
OCA-git-bot merged 1 commit intoOCA:16.0from
commown:16.0-fix-web_group_by_percentage-exclude_non_field_columns
Apr 16, 2026
Merged

[16.0][FIX] web_group_by_percentage: Added exclusion of non-field columns#3397
OCA-git-bot merged 1 commit intoOCA:16.0from
commown:16.0-fix-web_group_by_percentage-exclude_non_field_columns

Conversation

@Honeyxilia
Copy link
Copy Markdown

In some list/tree views, there are non-field columns, for instance buttons to handle an action on a group of lines. Consequently, with this module installed, it's impossible to group lines in certain views, if the grouped view has a button, as using isNumericColumn, which tries to access the column in the view's fields, throws an Exception.

As such, we exclude non-field columns from the computation of grouped columns percentages.

Copy link
Copy Markdown
Member

@fcayre fcayre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review + functional test OK

@fcayre fcayre force-pushed the 16.0-fix-web_group_by_percentage-exclude_non_field_columns branch from 9bb05ad to f95be60 Compare December 22, 2025 13:24
Copy link
Copy Markdown

@petrus-v petrus-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good to me

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Sorry @Honeyxilia you are not allowed to rebase.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@Honeyxilia Honeyxilia force-pushed the 16.0-fix-web_group_by_percentage-exclude_non_field_columns branch from f95be60 to 5fa6b7c Compare March 24, 2026 16:52
In some list/tree views, there are non-field columns, for instance buttons to handle an action on a group of lines.
Consequently, with this module installed, it's impossible to group lines in certain views, if the grouped view has a button,
as using isNumericColumn, which tries to access the column in the view's fields, throws an Exception.

As such, we exclude non-field columns from the computation of grouped columns percentages.
@Honeyxilia Honeyxilia force-pushed the 16.0-fix-web_group_by_percentage-exclude_non_field_columns branch from 5fa6b7c to d2b3dc4 Compare March 25, 2026 13:02
@tarteo
Copy link
Copy Markdown
Member

tarteo commented Apr 16, 2026

Makes sense, tests error is not related to this PR

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-3397-by-tarteo-bump-patch, awaiting test results.

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 778a4af. Thanks a lot for contributing to OCA. ❤️

@OCA-git-bot OCA-git-bot merged commit fb08985 into OCA:16.0 Apr 16, 2026
8 of 10 checks passed
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.

6 participants