Monday, March 10, 2025
1 change · saas-17.4
Enhancements to existing features
Grouped list views now move columns with totals to the end, preventing group labels from being hidden or clipped. Scheduled action priority values are no longer totalled because that number was not meaningful, making the view cleaner and slightly more efficient.
Original PR description
#### Description of the issue/feature this PR addresses: This PR changes: 1. Sets `aggregator=None` on `ir.cron`'s `priority` field since aggregating this by summing it up (sum is the default…
#### Description of the issue/feature this PR addresses:
This PR changes:
1. Sets `aggregator=None` on `ir.cron`'s `priority` field since aggregating this by summing it up (sum is the default aggregator on Integer fields) gives us no useful information. Removing it has a very minimal performance improvement and would partly address the issue where this field's aggregated value clips over the grouped by field
2. Moves the aggregated columns to the end in a list view that is grouped:
a. New getter method: `aggregatedFieldNames` which gives us the names of fields that have an aggregator property. We cannot use the existing get aggregates method since that is undefined before we have rendered the list.
b. In the `onWillRender` method of `list_renderer.js`, we check if the list is grouped, if yes then move all the aggregated columns to the end of the table. Thanks to @aab-odoo (author of the original refactor) for suggesting this idea.
#### Current behavior before PR:
Prior to https://github.com/odoo/odoo/commit/3d9a6ac the width of the first column would be increased in case of grouping list views. This would make the label of the grouped field visible by expanding the first column. However after the mentioned commit, we restrict the min and max widths of the columns which leads to the value of this grouped by field getting clipped by the aggregated column's value.


####Desired behavior after PR is merged:
Aggregated columns will be moved to the end of the table in the order of
https://github.com/user-attachments/assets/9c50500d-578f-4f9d-bb70-b6368ef30ac2
opw-4536133
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr