[MERGE] many2many_tags: correctly checks it's falsy value
bzr revid: fme@openerp.com-20121121100812-gzn25f8g50cr5t3t
This commit is contained in:
commit
a0c3ba7a1c
|
@ -4026,6 +4026,9 @@ instance.web.form.FieldMany2ManyTags = instance.web.form.AbstractField.extend(in
|
||||||
}
|
}
|
||||||
this._super(value_);
|
this._super(value_);
|
||||||
},
|
},
|
||||||
|
is_false: function() {
|
||||||
|
return _(this.get("value")).isEmpty();
|
||||||
|
},
|
||||||
get_value: function() {
|
get_value: function() {
|
||||||
var tmp = [commands.replace_with(this.get("value"))];
|
var tmp = [commands.replace_with(this.get("value"))];
|
||||||
return tmp;
|
return tmp;
|
||||||
|
|
Loading…
Reference in New Issue