[IMP] crm: fixed some categ_id remaining.

bzr revid: tde@openerp.com-20120813131207-lu1c271q5dh27vlr
This commit is contained in:
Thibault Delavallée 2012-08-13 15:12:07 +02:00
parent ae6d1fe900
commit 9a3deaf3da
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class res_partner(osv.osv):
'planned_revenue' : planned_revenue,
'probability' : probability,
'partner_id' : partner_id,
'categ_id' : categ_ids and categ_ids[0] or '',
'categ_ids' : categ_ids and categ_ids[0:1] or [],
'state' :'draft',
'type': 'opportunity'
}, context=context)

View File

@ -71,7 +71,7 @@ class crm_opportunity2phonecall(osv.osv_memory):
call_ids = opportunity.schedule_phonecall(cr, uid, opportunity_ids, data.date, data.name, \
data.note, data.phone, data.contact_name, data.user_id and data.user_id.id or False, \
data.section_id and data.section_id.id or False, \
data.categ_id and data.categ_id.id or False, \
data.categ_ids and data.categ_ids[0].id or False, \
action=data.action, context=context)
return {'type': 'ir.actions.act_window_close'}