Use ilike operator as One2One default search operator

issue10977
review374271002
(grafted from f79d637654a5a47ecb633cc871283f2773954e02)

--HG--
branch : 6.0
This commit is contained in:
Sergi Almacellas Abellana committed 2021-11-25 09:48:08 +01:00
1 parent ab2a311ee8
commit a2b3c46ca7
1 file changed
+1 -1
+1 -1
View File
@@ -1892,7 +1892,7 @@
},
default_operator: function(field) {
if (~['char', 'text', 'many2one', 'many2many', 'one2many',
'reference'].indexOf(field.type)) {
'reference', 'one2one'].indexOf(field.type)) {
return 'ilike';
} else if (field.type == 'multiselection') {
return 'in';