[IMP] crm: Fixed, Traceback generated when converting to phonecall to opportunity and opportunity to phonecall

bzr revid: ron@tinyerp.com-20111102132155-vsx88zcemuqjbucs
This commit is contained in:
ron@tinyerp.com
2011-11-02 18:51:55 +05:30
parent e9149c52ff
commit b62ace082d
@@ -41,7 +41,7 @@ class crm_opportunity2phonecall(osv.osv_memory):
categ_id = data_obj.browse(cr, uid, res_id, context=context).res_id
record_ids = context and context.get('active_ids', []) or []
res = super(crm_opportunity2phonecall, self).default_get(cr, uid, fields, context=context)
res = {}
res.update({'action': 'schedule', 'date': time.strftime('%Y-%m-%d %H:%M:%S')})
for opp in opp_obj.browse(cr, uid, record_ids, context=context):
if 'name' in fields: