From ab30c4663ccca6e0152c6629461287fd17468f2c Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sat, 16 Oct 2010 17:46:28 +0200 Subject: [PATCH] fix bzr revid: fp@tinyerp.com-20101016154628-vkrhn309haxqhbpu --- addons/crm/crm_lead.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index e387898bd6d..e6226bb44bb 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -203,7 +203,7 @@ class crm_lead(crm_case, osv.osv): 'opportunity': _('The opportunity') }.get(case.type, _('The case')) message = n +" '" + case.name + "' "+ _("has been opened.") - self.log(cr, uid, id, message) + self.log(cr, uid, case.id, message) return res def case_close(self, cr, uid, ids, *args): @@ -222,7 +222,7 @@ class crm_lead(crm_case, osv.osv): 'opportunity': _('The opportunity') }.get(case.type, _('The case')) message = n +" '" + case.name + "' "+ _("has been closed.") - self.log(cr, uid, id, message) + self.log(cr, uid, case.id, message) return res def convert_opportunity(self, cr, uid, ids, context=None):