From fa48e05f42492fdca7fd371bca1b2643b50e4ac0 Mon Sep 17 00:00:00 2001 From: jbm-odoo Date: Mon, 9 Dec 2019 13:11:36 +0000 Subject: [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 --- doc/reference/views.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/reference') 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 -- cgit v1.2.3