From b4ebef7d20009bdf660f7c0674e5963a513e5e47 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Thu, 2 Mar 2023 14:54:21 +0000 Subject: [PATCH] [IMP] gantt: adapt doc to last changes brought during owl conversion Part-of: odoo/documentation#3722 --- content/developer/reference/backend/views.rst | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/content/developer/reference/backend/views.rst b/content/developer/reference/backend/views.rst index b5626d248..d9e74a736 100644 --- a/content/developer/reference/backend/views.rst +++ b/content/developer/reference/backend/views.rst @@ -1066,9 +1066,6 @@ take the following attributes: ``total_row`` boolean to control whether the row containing the total count of records should be displayed. (default: ``false``) -``collapse_first_level`` - boolean to control whether it is possible to collapse each row if grouped by - one field. (default: ``false``, the collapse starts when grouping by two fields) ``display_unavailability`` boolean to mark the dates returned by the ``gantt_unavailability`` function of the model as available inside the gantt view. Records can still be scheduled @@ -1086,22 +1083,12 @@ take the following attributes: are allowed. For possible scale values to use in this list, see ``default_scale``. ``templates`` - defines the :ref:`reference/qweb` template ``gantt-popover`` which is used - when the user hovers over one of the records in the gantt view. + defines the :ref:`QWeb template ` ``gantt-popover`` which is used + by the popover that is opened when the user clicks on a record in the gantt view. - The gantt view uses mostly-standard :ref:`javascript qweb - ` and provides the following context variables: - - .. rst-class:: o-definition-list - - ``widget`` - the current :js:class:`GanttRow`, can be used to fetch some - meta-information. The ``getColor`` method to convert in a color integer is - also available directly in the template context without using ``widget``. - - ``on_create`` - If specified when clicking the add button on the view, instead of opening a generic dialog, launch a client action. - this should hold the xmlid of the action (eg: ``on_create="%(my_module.my_wizard)d"`` +``on_create`` + If specified, launch a client action when clicking the add button on the view instead of opening a generic dialog. + This should hold the xmlid of the action (eg: ``on_create="%(my_module.my_wizard)d"``). ``form_view_id`` view to open when the user create or edit a record. Note that if this attribute