[MERGE] many2many_tags: correctly checks it's falsy value

bzr revid: fme@openerp.com-20121121100812-gzn25f8g50cr5t3t
This commit is contained in:
Fabien Meghazi 2012-11-21 11:08:12 +01:00
commit a0c3ba7a1c
1 changed files with 3 additions and 0 deletions

View File

@ -4026,6 +4026,9 @@ instance.web.form.FieldMany2ManyTags = instance.web.form.AbstractField.extend(in
}
this._super(value_);
},
is_false: function() {
return _(this.get("value")).isEmpty();
},
get_value: function() {
var tmp = [commands.replace_with(this.get("value"))];
return tmp;