[7.0] res.partner name_search() does not properly match all display names

Bug #1188300 reported by electro
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

Bug Description

CRM Module

If you filter opportunities using Partner field, filter won't work for those customers who are contact of another customer (Company)

In this case full name for the Partner is "Company,Customer"

Suppose you have a customer eg. "Mr.Bob" who is working for the company "Red ltd".

In OpenERP>CRM>Customer you will have 1 entry for "Red Ltd" and 1 entry for "Mr.Bob".

Because "Mr.Bob" has been created as contact of "Red Ltd", he will be listed as "Red Ltd, Mr.Bob" in openerp.

You have an opportunity where "Mr.Bob" is selected as Partner (than OpenERP showing "Red Ltd,MrBob" in the opportunity form)

On "Mr.Bob" icon is displayed "1 opportunity" but if you click on the "1 opportunity" you will receive an empty list.

Again if you go in opportunities list (Kanban, list and oher) you can see the MrBob's opportunity but if you try to filter out it you can't (if you will use the suggested Partner field)

You can filter Red Ltd,MrBob's opportunity just using free text like "Bob"

sorry for my poor english

Related branches

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello Eletro,

Thanks for reporting this issue.

I have checked this issue with latest trunk as well as with 7.0. And I have face same issue. And i have seen that this issue is not occur for only crm, but its occurs for whole addons.

e.g. : I created an invoice, an opportunity, a sale, a contract and a phone call for Joseph walters (from the link in partner form), when I come back to partner, and click again on invoice links, i don't find invoice of Joseph Walters.

So, I am confirming this issue.

Thank you.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Paramjit Singh Sahota(OpenERP) (psa-openerp) wrote :

Hello,

It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-1188300-psa branch.
Hope, this will be soon merged in trunk.

Thank you!
 -PSA.

Changed in openobject-addons:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The correction has landed in the *server* 7.0 branch at revision 5005 (rev-id:<email address hidden>).

Thanks for reporting!

affects: openobject-addons → openobject-server
Changed in openobject-server:
status: Fix Committed → Fix Released
summary: - Opportunity: filter by "partner,contact" doesn't work
+ [7.0] res.partner name_search() does not properly match all display
+ names
Changed in openobject-server:
milestone: none → 7.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.