diff options
| author | jbm-odoo <jbm@odoo.com> | 2019-12-09 13:11:36 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-01-27 16:08:34 +0000 |
| commit | fa48e05f42492fdca7fd371bca1b2643b50e4ac0 (patch) | |
| tree | d071c4bf2803893f91c9179ad422e1a8e2df59ae /doc/reference/views.rst | |
| parent | d39fc89324810df765cdcdbe2113446ec5cd882d (diff) | |
[IMP] calendar: Improve color and filters
Now in a calendar view, if we use the color, attribute, it will use
the same color as Gantt views and the color picker widget.
The attribute color isn't more set as default in filter because it make,
in most situation, no sense to filter by color.
Now, we can add new filters in the right panel. To do that, we must
add the attribute "filter='1'" in the corresponding field line.
And if the filter has no direct link with the color of the model,
we can specify an attribute 'color' for this filter line block.
(for example color='color', and the color of the related model
will be used)
TaskID: 2153249
Diffstat (limited to 'doc/reference/views.rst')
| -rw-r--r-- | doc/reference/views.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst index af84421ea91..4a4ab2f1206 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -927,6 +927,9 @@ calendar view are: ``write_model`` and ``write_field`` you can add a filter and save the result in the defined model, the filter is added in the sidebar + ``filter`` and ``color`` + use "True" to add this field in filter in the sidebar. You can specify + a color field used to colorize the checkbox. ``templates`` defines the :ref:`reference/qweb` template ``calendar-box``. Cards definition |
