Files
web/web_tree_image_tooltip/readme/CONFIGURE.rst
Sylvain LE GAL da19285c58 [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
2022-08-05 10:43:07 -05:00

15 lines
478 B
ReStructuredText

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'}"/>