diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-10-10 19:14:30 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-10-10 19:14:30 +0200 |
| commit | 0be264b29eac11a5dec5e6565d23d4ea86bd905a (patch) | |
| tree | 79362f2340c89cb3cf2e8d8a467f357b7c7a8326 /doc/reference/views.rst | |
| parent | cf753a7fdf1739dcf37d2ad74f4c8efb3d4ff3b3 (diff) | |
| parent | e1104ac344cbc349a46b22339b13dfe9cbab8bcb (diff) | |
[MERGE] forward port branch 11.0 up to e1104ac344c
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 |
