I am trying to change the web_tree_image widget. Instead of just showing a small image in a column, I would like a larger image to appear when you hover or click. To achieve this, I am trying to add a callback after rendering the widget by overriding the start function, as described in the documentation .
So I added the following code in web_tree_image.js :
openerp.web_tree_image = function (instance) { instance.web.list.Image = instance.web.list.Column.extend({
However, the start function is never called, so this does not work.
I did not fully understand the code path that usually invokes the start call, but it seems to be somehow different for web.list.Column .
Should start be called and am I doing something wrong? Or is there another way to execute the code after creating the DOM elements?
javascript callback openerp odoo-8 openerp-8
ValarDohaeris
source share