3
0
Fork 0

Set valid value if field is empty

8.0
Peter Hahn 2016-03-15 14:24:05 +01:00
parent cd3f92c69c
commit 19f3523469
1 changed files with 6 additions and 0 deletions

View File

@ -85,6 +85,12 @@ openerp.web_widget_one2many_tags = function(instance)
// 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(