From d8b2eab2d0de3a467cb264b768466c0ec01d0ada Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Mon, 14 Apr 2014 12:06:52 +0200 Subject: [PATCH] [FIX] correctly names a variable 'meeting_ids' instead of 'opportunity_ids' (addon crm) bzr revid: ged@openerp.com-20140414100652-gwv5cwht6wl12ah9 --- addons/crm/crm_lead.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index f3ce3ace549..8a8b17df0cb 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -218,7 +218,7 @@ class crm_lead(format_address, osv.osv): res = dict(map(lambda x: (x,0), ids)) try: for meeting in self.browse(cr, uid, ids, context=context): - res[meeting.id] = len(meeting.opportunity_ids) + res[meeting.id] = len(meeting.meeting_ids) except: pass return res @@ -296,7 +296,7 @@ class crm_lead(format_address, osv.osv): 'payment_mode': fields.many2one('crm.payment.mode', 'Payment Mode', \ domain="[('section_id','=',section_id)]"), 'planned_cost': fields.float('Planned Costs'), - 'opportunity_ids': fields.one2many('calendar.event', 'opportunity_id', 'Opportunities'), + 'meeting_ids': fields.one2many('calendar.event', 'opportunity_id', 'Opportunities'), 'meeting_count': fields.function(_meeting_count, string='# Meetings', type='integer'), }