[FIX] sales_team: allow searching crm.team.members on sales person

Before commit:
In the sales_team -> search view of team members, if we try to seach
by name of a team member(sales person), the result do not match with
the search string, because it tries to search using `name` field which
is a non-stored related field.

After commit:
Instead of `name` field, we search the team member(sales person) using
`user_id` field, giving the expected result.

TaskID-2460697

closes odoo/odoo#66989

X-original-commit: c38584f6e89a8e94288d90f1e004038927fd6de2
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Munaf Khan
2021-03-01 10:27:04 +00:00
parent f56205f85a
commit cbfa847f57
@@ -6,7 +6,7 @@
<field name="model">crm.team.member</field>
<field name="arch" type="xml">
<search string="Sales Person">
<field name="name"/>
<field name="user_id"/>
<field name="crm_team_id"/>
<separator/>
<filter name="archived" string="Archived" domain="[('active', '=', False)]"/>