From c7e8142caec674e887c01a2161cd493d3f675522 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 19 Nov 2012 13:24:13 +0100 Subject: [PATCH] [FIX] many2many_tags: the widget accept the required attribute bzr revid: chm@openerp.com-20121119122413-plp6klbytyjuhwqt --- addons/web/static/src/js/view_form.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index dad622fb7f9..7ae4221e054 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -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");