diff options
Diffstat (limited to 'doc/reference/views.rst')
| -rw-r--r-- | doc/reference/views.rst | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 2f41bb61a7f..c2463245998 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -881,8 +881,6 @@ Possible children of the view element are: The kanban view uses mostly-standard :ref:`javascript qweb <reference/qweb/javascript>` and provides the following context variables: - ``instance`` - the current :ref:`reference/javascript/client` instance ``widget`` the current :js:class:`KanbanRecord`, can be used to fetch some meta-information. These methods are also available directly in the @@ -894,8 +892,6 @@ Possible children of the view element are: a :meth:`~odoo.models.Model.read` (except for date and datetime fields that are `formatted according to user's locale <https://github.com/odoo/odoo/blob/a678bd4e/addons/web_kanban/static/src/js/kanban_record.js#L102>`_) - ``formats`` - the :js:class:`web.formats` module to manipulate and convert values ``read_only_mode`` self-explanatory @@ -929,40 +925,7 @@ Possible children of the view element are: * kanban-specific CSS * kanban structures/widgets (vignette, details, ...) -Javascript API --------------- - -.. js:class:: KanbanRecord - - :js:class:`Widget` handling the rendering of a single record to a - card. Available within its own rendering as ``widget`` in the template - context. - - .. js:function:: kanban_color(raw_value) - - Converts a color segmentation value to a kanban color class - :samp:`oe_kanban_color_{color_index}`. The built-in CSS provides classes - up to a ``color_index`` of 9. - - .. js:function:: kanban_getcolor(raw_value) - - Converts a color segmentation value to a color index (between 0 and 9 by - default). Color segmentation values can be either numbers or strings. - - .. js:function:: kanban_image(model, field, id[, cache][, options]) - - Generates the URL to the specified field as an image access. - - :param String model: model hosting the image - :param String field: name of the field holding the image data - :param id: identifier of the record contaning the image to display - :param Number cache: caching duration (in seconds) of the browser - default should be overridden. ``0`` disables - caching entirely - :returns: an image URL - - .. warning:: - ``kanban_text_ellipsis`` has been removed in Odoo 9. CSS ``text-overflow`` should be used instead. +If you need to extend the Kanban view, see :js:class::`the JS API <KanbanRecord>`. .. _reference/views/calendar: @@ -1029,8 +992,6 @@ calendar view are: The kanban view uses mostly-standard :ref:`javascript qweb <reference/qweb/javascript>` and provides the following context variables: - ``instance`` - the current :ref:`reference/javascript/client` instance ``widget`` the current :js:class:`KanbanRecord`, can be used to fetch some meta-information. These methods are also available directly in the |
