[FIX] crm_partner_assign: fixed search on res.partner still using deprecated country field instead of country_id.

This commit is contained in:
Thibault Delavallée 2014-06-11 08:59:04 +02:00
parent 43f9b18183
commit f7879c4076
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class crm_lead(osv.osv):
('partner_weight','>', 0),
('partner_latitude','>', latitude - 8), ('partner_latitude','<', latitude + 8),
('partner_longitude','>', longitude - 8), ('partner_longitude','<', longitude + 8),
('country', '=', lead.country_id.id),
('country_id', '=', lead.country_id.id),
], context=context)
# 5. fifth way: anywhere in same country