diff --git a/web_widget_one2many_tags/README.rst b/web_widget_one2many_tags/README.rst index 752c8c2e..a35f4a35 100644 --- a/web_widget_one2many_tags/README.rst +++ b/web_widget_one2many_tags/README.rst @@ -37,6 +37,7 @@ Contributors * Holger Brunn * Iván Todorovich +* Peter Hahn Maintainer ---------- diff --git a/web_widget_one2many_tags/static/src/js/web_widget_one2many_tags.js b/web_widget_one2many_tags/static/src/js/web_widget_one2many_tags.js index 04bba4ba..7540ee3e 100755 --- a/web_widget_one2many_tags/static/src/js/web_widget_one2many_tags.js +++ b/web_widget_one2many_tags/static/src/js/web_widget_one2many_tags.js @@ -82,8 +82,15 @@ openerp.web_widget_one2many_tags = function(instance) init: function () { this._super.apply(this, arguments); // Treat it as many2many to trick odoo into populating '__display'. + // note: this has been fixed in core OCB recently this.type = 'many2many'; }, + _format: function (row_data, options) { + if (_.isEmpty(row_data[this.id].value)) { + row_data[this.id] = {'value': false}; + } + return this._super(row_data, options); + } }); instance.web.list.columns.add(