[FIX] many2many_tags: the widget accept the required attribute

bzr revid: chm@openerp.com-20121119122413-plp6klbytyjuhwqt
This commit is contained in:
Christophe Matthieu 2012-11-19 13:24:13 +01:00
parent 09a2f24398
commit c7e8142cae
1 changed files with 4 additions and 2 deletions

View File

@ -4026,9 +4026,11 @@ 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;
return [commands.replace_with(this.get("value"))];
},
get_search_blacklist: function() {
return this.get("value");