summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2012-12-05 17:19:35 +0100
committerAntonin Bourguignon <abo@openerp.com>2012-12-05 17:19:35 +0100
commite2df492679c6c8aab2bdac8769f77a76255d0a4d (patch)
tree5a0a17d4b495bd7ffea7fd2a1051e56b2297e352
parentcc4b35e30a75d295af65b79a57ee4913c1c90aa5 (diff)
[FIX] wrong var name
also minor imp in crm_phonecall.py doc bzr revid: abo@openerp.com-20121205161935-pm4x6v0y426qzc47
-rw-r--r--addons/crm/crm_lead.py2
-rw-r--r--addons/crm/crm_phonecall.py5
2 files changed, 4 insertions, 3 deletions
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)