[ADD] field_utils to web_timeline

[UPD] Version number

[UPD] README
This commit is contained in:
tarteo
2018-07-27 12:35:25 +02:00
committed by CarlosRoca13
parent 10a9f0318a
commit b77720d084
4 changed files with 14 additions and 4 deletions

View File

@@ -39,6 +39,13 @@ the possible attributes for the tag:
view.
* colors (optional): it allows to set certain specific colors if the expressed
condition (JS syntax) is met.
Optionally you can declare a custom template, which will be used to render the
timeline items. You have to name the template 'timeline-item'.
These are the variables available in template rendering:
* ``record``: to access the fields values selected in the timeline definition.
* ``field_utils``: used to format and parse values (see available functions in ``web.field_utils``).
You also need to declare the view in an action window of the involved model.