summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorHardik Ansodariya <han@openerp.com>2014-08-13 11:56:26 +0530
committerMartin Trigaux <mat@openerp.com>2014-10-01 11:40:17 +0200
commit80984ab33c6bf64c19d9cdf1df80ae492449cdaf (patch)
tree5f96aa6b4b37f516506f49dfeb5a76ef0e465711 /addons
parent55a75d710ac9aa4a1896fff4773406ac619d87c1 (diff)
[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.
Diffstat (limited to 'addons')
-rw-r--r--addons/crm/res_partner.py2
1 files changed, 1 insertions, 1 deletions
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',\