[FP][17.0][IMP] web_timeline - support multiple group-by levels and allow to group by m2m field#3301
Conversation
|
Hi @tarteo, |
|
@cuongnmtm I understand this PR is not ready for review yet because the files are not loaded in the manifest. |
67df4c0 to
62b9a52
Compare
carlos-lopez-tecnativa
left a comment
There was a problem hiding this comment.
I got this error when grouping a datetime field. I suspect this commit 751fb9c might be missing, please review:
I haven't finished this port yet. There are three commits to port, and the remaining two are taking more time because I need to adapt the changes to the refactoring in version 17. I will find time to work on them. |
|
@cuongnmtm any news on this fw-port? |
@pedrobaeza Thank you for checking this. I have reviewed it and believe it will take several hours to complete, as porting this change involves significant effort due to the major refactoring in 17.0. I am currently quite busy with the Komit's customer projects, but I will aim to continue working on this every Friday. |
|
Thanks for the follow-up. We will wait for news. |
|
It is done, could you please help review again @pedrobaeza @carlos-lopez-tecnativa ? Thanks. |
pedrobaeza
left a comment
There was a problem hiding this comment.
Tested on runboat and working properly. Thanks!
carlos-lopez-tecnativa
left a comment
There was a problem hiding this comment.
I have the same issue reported in V16 #3006 (review)
I tested locally with the project_timeline module installed. In the All Tasks view, when grouping by creation date (by year and month), collapsing the group by year triggers a traceback.

web_timeline/static/src/views/timeline/timeline_renderer.esm.js
Outdated
Show resolved
Hide resolved
b8635f1 to
cd420fd
Compare
cd420fd to
ccb3e06
Compare
|
This PR has the |
…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.
ccb3e06 to
c1fafa6
Compare
|
Thank you very much for the efforts! /ocabot merge minor Are you going to fw-port it to 18? |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
Yes sir, I am going to initialize the fw. Hopefully, it is easier forwarding to 18.0 and 19.0. |
|
Congratulations, your PR was merged at b0288b6. Thanks a lot for contributing to OCA. ❤️ |



Forward-port of #3006
Test cases: