[MERGE] many2many_tags: correctly checks it's falsy value
authorFabien Meghazi <fme@openerp.com>
Wed, 21 Nov 2012 10:08:12 +0000 (11:08 +0100)
committerFabien Meghazi <fme@openerp.com>
Wed, 21 Nov 2012 10:08:12 +0000 (11:08 +0100)
bzr revid: fme@openerp.com-20121121100812-gzn25f8g50cr5t3t

1  2 
addons/web/static/src/js/view_form.js

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