[FIX] _.intersect renamed to _.intersection in underscore 1.1.7

bzr revid: xmo@openerp.com-20131203083835-btf02ys7vvro28aq
This commit is contained in:
Xavier Morel
2013-12-03 09:38:35 +01:00
parent 87b5c7990a
commit 5b4d0b9dbb
+1 -1
View File
@@ -198,7 +198,7 @@
init: function() {}
}, options || {});
var type = _.intersect(Object.keys(options), ['input', 'textarea', 'select']);
var type = _.intersection(Object.keys(options), ['input', 'textarea', 'select']);
type = type.length ? type[0] : 'text';
options.field_type = type;
options.field_name = options.field_name || options[type];