diff options
| author | Hardik Ansodariya <han@openerp.com> | 2014-08-13 11:56:26 +0530 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2014-10-01 11:40:17 +0200 |
| commit | 80984ab33c6bf64c19d9cdf1df80ae492449cdaf (patch) | |
| tree | 5f96aa6b4b37f516506f49dfeb5a76ef0e465711 | |
| parent | 55a75d710ac9aa4a1896fff4773406ac619d87c1 (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.
| -rw-r--r-- | addons/crm/res_partner.py | 2 |
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',\ |
