[FIX] crm: Traceback generated when converting opportunity from Scheduled Calls

bzr revid: ron@tinyerp.com-20111123091314-9remtt8bw59iki98
This commit is contained in:
ron@tinyerp.com
2011-11-23 14:43:14 +05:30
parent 4228eff228
commit 9bca7fa4d7
@@ -50,7 +50,7 @@ class crm_phonecall2opportunity(osv.osv_memory):
This function gets default values
"""
record_id = context and context.get('active_id', False) or False
res = super(crm_phonecall2opportunity, self).default_get(cr, uid, fields, context=context)
res = {}
if record_id:
phonecall = self.pool.get('crm.phonecall').browse(cr, uid, record_id, context=context)