[MIG] web_tree_image v11

This commit is contained in:
Nikul Chaudhary
2018-07-31 13:00:32 +05:30
parent 721874e7d4
commit 0c48ab560a
7 changed files with 46 additions and 117 deletions

View File

@@ -1,4 +1,4 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:alt: License: AGPL-3
=====================================
@@ -7,7 +7,7 @@ Display images and icons in tree view
This module defines a tree image widget, to be used with either binary fields
or (function) fields of type character. Use ``widget='image'`` in your view
definition. Optionally, set a ``height`` attribute. Default height is 16px.
definition. Optionally, set a ``width`` attribute. Default width is 30px.
If you use the widget with a character field, the content of the field can be
any of the following:
@@ -24,8 +24,6 @@ any of the following:
Usage
=====
This module defines a new widget type for tree views columns.
Set the attribute ``widget=image`` in a ``field`` tag in a tree view.
You can also set ``height=<height>`` to set the height the image will have.
Note that this just sets the CSS ``max-height`` attribute,
@@ -43,6 +41,7 @@ Contributors
* Leonardo Donelli <donelli@webmonks.it>
* Jay Vora <jay.vora@serpentcs.com>
* Meet Dholakia <m.dholakia.serpentcs@gmail.com>
* Nikul Chaudhary <nikul.chaudhary.serpentcs@gmail.com>
Maintainer
----------
@@ -52,3 +51,9 @@ Maintainer
:target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.