Skip to content
Snippets Groups Projects
Commit a5c3f8a8 authored by Rucha Patel's avatar Rucha Patel
Browse files

[FIX]: crm: Minor fix in phonecall to opportunity

bzr revid: rpa@tinyerp.com-20100811131820-d4r41mg778nzy363
parent 91e975bb
Branches
Tags
No related merge requests found
......@@ -88,7 +88,7 @@ Call Could not convert into Opportunity"))
address = None
if this.partner_id:
address_id = self.pool.get('res.partner').address_get(cr, uid, [this.partner_id.id])
if address_id:
if address_id['default']:
address = self.pool.get('res.partner.address').browse(cr, uid, address_id['default'], context=context)
new_opportunity_id = opp_obj.create(cr, uid, {
'name': this.name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment