projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b67004
)
[FIX] web: m2o search facet do no set `default_*` context key for "name_search" values
author
Christophe Simonis
<chs@odoo.com>
Thu, 27 Nov 2014 16:04:02 +0000
(17:04 +0100)
committer
Denis Ledoux
<dle@odoo.com>
Thu, 27 Nov 2014 16:06:48 +0000
(17:06 +0100)
addons/web/static/src/js/search.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/search.js
b/addons/web/static/src/js/search.js
index
797bd5d
..
eea5070
100644
(file)
--- a/
addons/web/static/src/js/search.js
+++ b/
addons/web/static/src/js/search.js
@@
-1699,7
+1699,10
@@
instance.web.search.ManyToOneField = instance.web.search.CharField.extend({
var values = facet.values;
if (_.isEmpty(this.attrs.context) && values.length === 1) {
var c = {};
- c['default_' + this.attrs.name] = values.at(0).get('value');
+ var v = values.at(0);
+ if (v.get('operator') !== 'ilike') {
+ c['default_' + this.attrs.name] = v.get('value');
+ }
return c;
}
return this._super(facet);