[FIX] wrong var name

also minor imp in crm_phonecall.py doc

bzr revid: abo@openerp.com-20121205161935-pm4x6v0y426qzc47
This commit is contained in:
Antonin Bourguignon 2012-12-05 17:19:35 +01:00
parent cc4b35e30a
commit e2df492679
2 changed files with 4 additions and 3 deletions

View File

@ -456,7 +456,7 @@ class crm_lead(base_stage, format_address, osv.osv):
:param list opps: list of browse records containing the leads/opps to process
:return string type: the type of the final element
"""
for opp in opportunities:
for opp in opps:
if (opp.type == 'opportunity'):
return 'opportunity'

View File

@ -244,8 +244,9 @@ class crm_phonecall(base_state, osv.osv):
return opportunity_dict
def action_make_meeting(self, cr, uid, ids, context=None):
""" This opens Meeting's calendar view to schedule meeting on current Phonecall
@return : Dictionary value for created Meeting view
"""
Open meeting's calendar view to schedule a meeting on current phonecall.
@return dict res: dictionary value for created meeting view
"""
phonecall = self.browse(cr, uid, ids[0], context)
res = self.pool.get('ir.actions.act_window').for_xml_id(cr, uid, 'base_calendar', 'action_crm_meeting', context)