From 643554fb76dd5351be8398f8d97b308bc9309af0 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Mon, 8 Dec 2014 10:34:32 +0100 Subject: [PATCH] Widget name 'image' instead of 'tree_image' --- web_tree_image/README.rst | 2 +- web_tree_image/static/src/js/web_tree_image.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web_tree_image/README.rst b/web_tree_image/README.rst index 502be0d8..83cde6c5 100644 --- a/web_tree_image/README.rst +++ b/web_tree_image/README.rst @@ -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 diff --git a/web_tree_image/static/src/js/web_tree_image.js b/web_tree_image/static/src/js/web_tree_image.js index 1ecaab6e..f08bf204 100644 --- a/web_tree_image/static/src/js/web_tree_image.js +++ b/web_tree_image/static/src/js/web_tree_image.js @@ -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'); };