Merge lp:~openerp-dev/openobject-addons/6.0-opw-383719-han into lp:openobject-addons/6.0

Proposed by Hardik Ansodariya (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 5140
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-383719-han
Merge into: lp:openobject-addons/6.0
Diff against target: 11 lines (+1/-0)
1 file modified
base_contact/base_contact.py (+1/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-383719-han
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+100092@code.launchpad.net

Description of the change

Hello,

I have add partner_id in name_search method of res.partner.contact in order to search by partner name.

Kindly review it.

Thanks

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve

Unmerged revisions

5140. By Hardik Ansodariya (OpenERP)

[Fix] base_contact: Added partner_id in name_search method(Maintanace Case:383719)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'base_contact/base_contact.py'
2--- base_contact/base_contact.py 2011-09-26 10:13:11 +0000
3+++ base_contact/base_contact.py 2012-03-30 09:38:21 +0000
4@@ -109,6 +109,7 @@
5 context = {}
6 if name:
7 ids = self.search(cr, uid, ['|',('name', operator, name),('first_name', operator, name)] + args, limit=limit, context=context)
8+ ids += self.search(cr, uid, [('partner_id',operator,name)] + args, limit=limit, context=context)
9 else:
10 ids = self.search(cr, uid, args, limit=limit, context=context)
11 return self.name_get(cr, uid, ids, context=context)