diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 2870800509e..83121a6c6d6 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -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' diff --git a/addons/crm/crm_phonecall.py b/addons/crm/crm_phonecall.py index eb43573d8bc..9f75a3b198f 100644 --- a/addons/crm/crm_phonecall.py +++ b/addons/crm/crm_phonecall.py @@ -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)