[FIX] correctly names a variable 'meeting_ids' instead of 'opportunity_ids' (addon crm)

bzr revid: ged@openerp.com-20140414100652-gwv5cwht6wl12ah9
This commit is contained in:
Gery Debongnie 2014-04-14 12:06:52 +02:00
parent 6630568dbe
commit d8b2eab2d0
1 changed files with 2 additions and 2 deletions

View File

@ -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'),
}