mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
add "web_list_html_widget" module
This commit is contained in:
committed by
Holger Brunn
parent
6566dc086b
commit
0ebc5a3cab
10
web_list_html_widget/static/src/js/view_list.js
Normal file
10
web_list_html_widget/static/src/js/view_list.js
Normal file
@@ -0,0 +1,10 @@
|
||||
openerp.web_list_html_widget = function(instance){
|
||||
instance.web.list.columns.map['field.html'] = 'instance.web.list.HtmlColumn';
|
||||
|
||||
instance.web.list.HtmlColumn = instance.web.list.Column.extend({
|
||||
_format: function (row_data, options) {
|
||||
return instance.web.format_value(
|
||||
row_data[this.id].value, this, options.value_if_empty);
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user