Use ilike operator as One2One default search operator

issue10977
review374271002
(grafted from b41c0e2d6a2f41743bda0cdeaeb070d68a2ba18b)

--HG--
branch : 6.0
This commit is contained in:
Sergi Almacellas Abellana committed 2021-11-25 09:48:02 +01:00
1 parent 2e9eeffe08
commit 0b65bd45aa
1 file changed
+1 -1
+1 -1
View File
@@ -177,7 +177,7 @@ def append_ending_clause(domain, clause, deep):
def default_operator(field):
"Return default operator for field"
if field['type'] in ('char', 'text', 'many2one', 'many2many', 'one2many',
'reference'):
'reference', 'one2one'):
return 'ilike'
elif field['type'] == 'multiselection':
return 'in'