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
17
web_tree_image_tooltip/demo/view_res_users.xml
Normal file
17
web_tree_image_tooltip/demo/view_res_users.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="view_users_tree" model="ir.ui.view">
|
||||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="base.view_users_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="before">
|
||||
<field
|
||||
name="image_small"
|
||||
options="{'tooltip_image': 'image'}"
|
||||
widget="image"
|
||||
string="Image"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user