mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_tree_image_tooltip :
* Add the possibility to define an alternative image field for the tooltip image to reduce the bandwidth used * Add image in the description of the module * Add demo data for the res.users tree view
This commit is contained in:
committed by
Christopher Ormaza
parent
d257ce8585
commit
da19285c58
@@ -1 +1,14 @@
|
||||
Insert `widget='image'` in your field view definition in any image field
|
||||
|
||||
.. code:: xml
|
||||
|
||||
<field name="image_field" widget="image"/>
|
||||
|
||||
|
||||
If the model has different fields of the same image with different size
|
||||
(as ``product.product`` for instance with ``image``, ``image_medium``, ``image_small``),
|
||||
you can write the following code to reduce the load duration of the tree view.
|
||||
|
||||
.. code:: xml
|
||||
|
||||
<field name="image_small" widget="image" options="{'tooltip_image': 'image'}"/>
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
* Nikul Chaudhary <nikul.chaudhary.serpentcs@gmail.com>
|
||||
* Phuc Tran Thanh <phuc@trobz.com>
|
||||
* Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
|
||||
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
This module defines a images and icons in tree view via Tooltip.
|
||||
Additionally, Default width with 30px.
|
||||
|
||||
.. image:: ../static/description/tree_view_image.png
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
Mouse Hover in tree view image that time Tooltip effect.
|
||||
|
||||
.. image:: ../static/description/tree_view_image_tooltip.png
|
||||
|
||||
Reference in New Issue
Block a user