Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Is fields.Html() supposed to work in tree views?

by
Maxim Litnitskiy
- 09/21/2014 06:30:51
There is no html type in view_list.js (It is there in view_form.js).
So the only thing that needs to be added is the following:

openerp.custom_contacts = function(instance) {    
    instance.web.list.columns.add('field.html', 'instance.web.list.Html');
    
    instance.web.list.Html= instance.web.list.Column.extend({
        _format: function (row_data, options) {
            return row_data[this.id].value;
        }                                                                                                                                                                   
    });

};

Or better add this functionality to view_list.js.
Just in case create an issue on github - https://github.com/odoo/odoo/issues/2577

Regards,