[IMP] gantt: adapt doc to last changes brought during owl conversion

Part-of: odoo/documentation#3722
This commit is contained in:
Mathieu Duckerts-Antoine 2023-03-02 14:54:21 +00:00
parent 1491cce9d6
commit b4ebef7d20

View File

@ -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 <reference/qweb>` ``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
<reference/qweb/javascript>` 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