Skip to content

[18.0] [FWPORT] web_timeline: Multi group by#3518

Open
paradoxxxzero wants to merge 4 commits into
OCA:18.0from
akretion:18.0-fw-web_timeline-multi-group-by
Open

[18.0] [FWPORT] web_timeline: Multi group by#3518
paradoxxxzero wants to merge 4 commits into
OCA:18.0from
akretion:18.0-fw-web_timeline-multi-group-by

Conversation

@paradoxxxzero
Copy link
Copy Markdown
Contributor

This is a fw port of #3301 with some arch parser fixes from #3455

…arter|month|week|day

Port of 16.0 commit 751fb9c to 17.0 refactored codebase:
- Convert group IDs from string format to JSON segment objects
- Add _getGroupedDate() for date/datetime grouping with Luxon
- Transform date fields after search_read for :operator specifiers
- Handle selection fields to display labels instead of technical values
- Remove fieldsGet dependency, use model.fields directly
- Add M2M name caching in split_groups
- Update controller group parsing (click, move, add) for JSON format
When creating a new record from a m2m group row, pre-fill the m2m field
with the group's value using the [(6, 0, [id])] command format.
@cuongnmtm
Copy link
Copy Markdown
Contributor

Thanks @paradoxxxzero ,

You may want to review the checklist I used for previous PRs.

  • group by one field (group by m2o, selection, integer, m2m, date, ...)
  • group by multiple fields
  • group by 0 field: back to default group by
  • create a new record
  • drag and drop record to update
  • click on the group by to view the group by record detail
  • when group by m2m field, record is displayed multiple times if linked to multiple m2m records
  • when drag and drop, the value of the m2m field should not be updated as there is no best way to handle this
  • when creating a new record, set the default value for all grouped fields
    • m2m field value will also be set, starting from 17.0
  • handle group by non-relation fields: click on the group of selection or char field do not popup record form view to avoid error.
  • dependency_arrow between multiple collapse/expand groups
  • group by create_date year|month|day, try colapse the group by (year) in both project and task timelines

I added an additional check whenever an issue is reported.

@flotho
Copy link
Copy Markdown
Member

flotho commented Apr 23, 2026

ping @DorianMAG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants