Skip to content
Snippets Groups Projects
Commit c7634599 authored by Yenthe666's avatar Yenthe666
Browse files

[FIX] base: search on partial mobile phone numbers too


Before this commit the search would search for phone numbers that contained a part of a string. The mobile phone would only look at exact matches so if we'd search for '0492700' the only result would be contacts with this exact match. After this commit every mobile phone that contains '0492700' will match and be shown. This allows for quickly finding customers by a partial mobile, just like the phone number does.

closes odoo/odoo#43752

X-original-commit: 8a34a6a6
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent eec9c4aa
No related branches found
No related tags found
No related merge requests found
......@@ -468,7 +468,7 @@
filter_domain="['|', '|', ('display_name', 'ilike', self), ('ref', '=', self), ('email', 'ilike', self)]"/>
<field name="parent_id" domain="[('is_company', '=', True)]" operator="child_of"/>
<field name="email" filter_domain="[('email', 'ilike', self)]"/>
<field name="phone" filter_domain="['|', ('phone', 'ilike', self), ('mobile', '=', self)]"/>
<field name="phone" filter_domain="['|', ('phone', 'ilike', self), ('mobile', 'ilike', self)]"/>
<field name="category_id" string="Tag" filter_domain="[('category_id', 'child_of', self)]"/>
<field name="user_id"/>
<separator/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment