-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
11.0 mig web_timeline #912
Conversation
* Avoid to display all items of group_by model * Remove unnecessary readgroup * Remove dependency on project. Modify module structure. Imporve readme file. * Add setup.py
* [FIX] Correct write when grouped by * Remove blank lines * Minor changes
* Update the vis.js framework to latest stable version (v4.20.1) to add new functionality and save almost 400ko of source code in odoo assets (the vis dev team has isolate the code for timeline widget from the rest of their widgets) * Add the possibility to display events with no duration (instantaneous) as the same time has regular events * Add the possibility to choose between two scroll mode : - zoom in time resolution (default) or - vertical scroll (web browser default behaviour) Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
…same as base Calendar view) In Odoo calendar view, the attribute date_delay is an alternative to date_stop, to provides the duration of the event instead of its end date. This commit integrate this attribute to the Timeline view, but contrary to the base Calendar view the Timeline view could use both arguments (date_stop and date_delay) simultaneously. Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
The default window display all the events (aka 'fit'), in case of events spread over the year, the events are invisibles (too small to be readable) Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
Change the attribute 'default_window' to 'mode' like the Odoo calendar view (to be iso functional)
CSS classes have changed with the updated version of vis.js
* Update Version in Manifest * Remove enconding in .py files * Rewrite the view definition according to version 11
Let's see if It's okay this time @pedrobaeza |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried on OCA/project#376 and working flawlessly, thanks!
Yep, I completely forgot about that functionality. I'll fix that in a moment. |
@phatnguyenuit can you recheck with the done changes if all is OK now? |
Hello @Maartincm! |
Hello @pedrobaeza! |
Please give your explicit approval then with the GitHub tools. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I tried to use this module for the project task by using the example given in https://github.com/OCA/web/tree/11.0/web_timeline:
I did install the Project module and i can confirm the table project_task is in the database. I tried the runbot but i also did not see the Timeline icon appearing amongst the kanban, list, graph icons in the default kanban view. What did i miss ? |
Thanks a lot !! |
No idea |
Imagine the next example in |
Noted. Thanks. |
@Maartincm I've noticed some bugs. If you ctrl+click to create a new record (project_timeline project.task) after you press Save & Exit the new item time slice does not disappear until you navigate to a different menu item and you reload the view, nor does the newly created records start and end dates reflect the time slice selected in the gantt view. There are other ways it could be improved. I fray from creating a new issue, because you mentioned your intent to swap out the gantt chart itself?. Thanks, again! |
Hey @InfernalLV, gratz for your comment. |
Migration of the Module web_timeline from V10 to V11.
I'm not a JS developer so any suggestion is more than welcome.
In the Issue #739 @pedrobaeza recommended the use of a new JS Library for this module. I'm working on that rigth now. Anyway, this version of the module is working on my end and uses the same lib that was used in V10.
P.D: I'm also uploading a PR for the module project/project_timeline