-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[9.0] [MIG] web_timeline #393
Conversation
cc @Tecnativa |
025fe7b
to
e42bfe8
Compare
e42bfe8
to
9bdd2e4
Compare
You can try the module in this PR with a practical example in projects: OCA/project#187 |
9bdd2e4
to
d25224a
Compare
web_timeline/README.rst
Outdated
is zoomed to fit all the current elements, the same as when you perform a | ||
search, filter or group by operation. | ||
|
||
You can use the mouse scroll to zoom it or out in the timeline, and make click |
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.
s/it/in
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.
you don't "make click on", you just "click on"
Comments fixed, but I'm working on some other things:
|
This is a great module! Hoping to see it finished 😉 |
@pedrobaeza Do you plan to implement the Critical Path Method? |
Not for now, so you can work on that if you want. |
@pedrobaeza this PR is working fine, maybe is better to merge and the rest add it in known issues? |
Is this still WIP? |
@yajo still pending #393 (comment) (nice to have) |
Maybe we should just add #393 (comment) to Roadmap & review/merge the existing? |
Yes, I think this is enough for a first version indeed, although I would like to add the other thing. |
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.
The history from #521 is not preserved!
see #306 (comment)
New view
* 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
b08afbd
to
4f0b76b
Compare
@lmignon @adrienpeiffer I have fixed commit history to reflect correctly the dates. Please give your final blessing for merging this. |
Travis is failing due to web_widget_float_formula |
Merging this finally! Thanks to all. |
Timeline view
Define a new view displaying events in an interactive visualization chart.
The widget is based on the external library
http://visjs.org/timeline_examples.html
Configuration
You need to define a view with the tag as base element. These are
the possible attributes for the tag:
contains the start of the event.
contains the end of the event.
contains the end of the event.
taken as default group by when accessing the view or when no other group by
is selected.
in a popup. If not (default value), the record is edited changing to form
view.
condition (JS syntax) is met.
You also need to declare the view in an action window of the involved model.
Example:
Usage
For accessing the timeline view, you have to click on the button with the clock
icon in the view switcher. The first time you access to it, the timeline window
is zoomed to fit all the current elements, the same as when you perform a
search, filter or group by operation.
You can use the mouse scroll to zoom it or out in the timeline, and make click
on any free area and drag for panning the view in that direction.
The records of your model will be shown as rectangles whose widths are the
duration of the event according our definition. You can select them clicking
on this rectangle. You can also use Ctrl or Shift keys for adding discrete
or range selections. Selected records are hightlighted with a different color
(but the difference will be more noticeable depending on the background color.
Once selected, you can drag and move the selected records across the timeline.
When a record is selected, a red cross button appears on the upper left corner
that allows to remove that record. This doesn't work for multiple records
although they were selected.
Records are grouped in different blocks depending on the group by criteria
selected (if none is specified, then the default group by is applied).
Dragging a record from one block to another change the corresponding field to
the value that represents the block. You can also click on the group name to
edit the involved record directly.
Making double click on the selected record, you would be able to edit it.
Making double click on a free area, you will create a record taking the group
and the start date where you click as initial data.
Known issues / Roadmap
pressed).