[FIX] crm_partner_assign: fixed search on res.partner still using deprecated country field instead of country_id.
This commit is contained in:
parent
43f9b18183
commit
f7879c4076
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue