From 80984ab33c6bf64c19d9cdf1df80ae492449cdaf Mon Sep 17 00:00:00 2001 From: Hardik Ansodariya Date: Wed, 13 Aug 2014 11:56:26 +0530 Subject: [PATCH] [FIX] crm: field opportunity_ids contains only opportunities The field opportunity_ids and opportunity_count should only contain opportunities (and not leads). This was confusing on the partner kanbans where the field opportunity_count included leads. --- addons/crm/res_partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/res_partner.py b/addons/crm/res_partner.py index 718ecd929ba..fd898017e13 100644 --- a/addons/crm/res_partner.py +++ b/addons/crm/res_partner.py @@ -43,7 +43,7 @@ class res_partner(osv.osv): _columns = { 'section_id': fields.many2one('crm.case.section', 'Sales Team'), 'opportunity_ids': fields.one2many('crm.lead', 'partner_id',\ - 'Leads and Opportunities', domain=[('probability', 'not in', ['0', '100'])]), + 'Opportunities', domain=[('type', '=', 'opportunity')]), 'meeting_ids': fields.many2many('calendar.event', 'calendar_event_res_partner_rel','res_partner_id', 'calendar_event_id', 'Meetings'), 'phonecall_ids': fields.one2many('crm.phonecall', 'partner_id',\