Browse Source

Set valid value if field is empty

pull/470/head
Peter Hahn 9 years ago
committed by susport
parent
commit
f7e4a159f9
  1. 6
      web_widget_one2many_tags/static/src/js/web_widget_one2many_tags.js

6
web_widget_one2many_tags/static/src/js/web_widget_one2many_tags.js

@ -85,6 +85,12 @@ openerp.web_widget_one2many_tags = function(instance)
// note: this has been fixed in core OCB recently // note: this has been fixed in core OCB recently
this.type = 'many2many'; 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( instance.web.list.columns.add(

Loading…
Cancel
Save