[FIX] wrong var name
also minor imp in crm_phonecall.py doc bzr revid: abo@openerp.com-20121205161935-pm4x6v0y426qzc47
This commit is contained in:
parent
cc4b35e30a
commit
e2df492679
|
@ -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'
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue