From e1bffa3cb8200394b685ead63dfc701eb50c2ae3 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 8 Nov 2010 15:38:21 +0100 Subject: [PATCH] [IMP] crm: better use of browse in crm_lead2opportunity.action_apply bzr revid: xmo@openerp.com-20101108143821-oy8f8ffg81m53f59 --- addons/crm/wizard/crm_lead_to_opportunity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/wizard/crm_lead_to_opportunity.py b/addons/crm/wizard/crm_lead_to_opportunity.py index 31c97c585d2..f3f7a4abb04 100644 --- a/addons/crm/wizard/crm_lead_to_opportunity.py +++ b/addons/crm/wizard/crm_lead_to_opportunity.py @@ -79,7 +79,7 @@ class crm_lead2opportunity(osv.osv_memory): 'user_id': (this.partner_id.user_id and this.partner_id.user_id.id) or (lead.user_id and lead.user_id.id), 'type': 'opportunity' } - lead_obj.write(cr, uid, lead.id, vals, context=context) + lead.write(vals, context=context) lead_obj.history(cr, uid, [lead], _('Opportunity'), details='Converted to Opportunity', context=context) if lead.partner_id: msg_ids = [ x.id for x in lead.message_ids]