[FIX] lead to opportunity create partner type

bzr revid: jam@tinyerp.com-20120306111207-yw6nr3or1dxfi769
This commit is contained in:
Jigar Amin - OpenERP 2012-03-06 16:42:07 +05:30
parent 92420a78f3
commit 1aaf758622
1 changed files with 1 additions and 0 deletions

View File

@ -597,6 +597,7 @@ class crm_lead(crm_case, osv.osv):
'country_id': lead.country_id and lead.country_id.id or False,
'state_id': lead.state_id and lead.state_id.id or False,
'is_company': is_company,
'type': 'contact'
}
partner = partner.create(cr, uid,vals, context)