[FIX] base_contact: search for a contact in a contact job now searches in firstname and lastname

bzr revid: olt@tinyerp.com-20100205083208-1hhoonlnwmhaas5p
This commit is contained in:
olt@tinyerp.com
2010-02-05 09:32:08 +01:00
parent 1c2210064c
commit c7b588ec59
+1 -1
View File
@@ -124,7 +124,7 @@ class res_partner_job(osv.osv):
self._order = 'sequence_partner'
elif arg[0] == 'contact_id':
self._order = 'sequence_contact'
elif arg[0] == 'name':
contact_obj = self.pool.get('res.partner.contact')
search_arg = ['|', ('first_name', 'ilike', arg[2]), ('name', 'ilike', arg[2])]
contact_ids = contact_obj.search(cr, user, search_arg, offset=offset, limit=limit, order=order, context=context, count=count)