mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Widget name 'image' instead of 'tree_image'
This commit is contained in:
committed by
Nikul Chaudhary
parent
9830fbec61
commit
c8c2fe78d8
@@ -2,7 +2,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='tree_image' in your view
|
||||
or (function) fields of type character. Use widget='image' in your view
|
||||
definition. Optionally, set a 'height' tag. Default height is 16px.
|
||||
|
||||
If you use the widget with a character field, the content of the field can be
|
||||
|
||||
@@ -47,5 +47,5 @@ openerp.web_tree_image = function (instance) {
|
||||
return instance.web.qweb.render('ListView.row.image', {widget: this, src: src});
|
||||
}
|
||||
});
|
||||
instance.web.list.columns.add('field.tree_image', 'instance.web.list.Image');
|
||||
instance.web.list.columns.add('field.image', 'instance.web.list.Image');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user