[IMP] crm: fixed some categ_id remaining.
bzr revid: tde@openerp.com-20120813131207-lu1c271q5dh27vlr
This commit is contained in:
parent
ae6d1fe900
commit
9a3deaf3da
|
@ -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)
|
||||
|
|
|
@ -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'}
|
||||
|
||||
|
|
Loading…
Reference in New Issue