[FIX] crm: Lead -> Opportunity: Use the right email address
authorStephane Wirtel <stephane@openerp.com>
Tue, 11 May 2010 10:12:48 +0000 (12:12 +0200)
committerStephane Wirtel <stephane@openerp.com>
Tue, 11 May 2010 10:12:48 +0000 (12:12 +0200)
bzr revid: stephane@openerp.com-20100511101248-80pmbxul0w9t6fwn

addons/crm/crm.py

index 91ef20b..34d8b46 100644 (file)
@@ -774,7 +774,7 @@ class crm_case_history(osv.osv):
         """
         res = {}
         for hist in self.browse(cursor, user, ids, context or {}):
-            res[hist.id] = (hist.email or '/') + ' (' + str(hist.date) + ')\n'
+            res[hist.id] = (hist.email_from or '/') + ' (' + str(hist.date) + ')\n'
             res[hist.id] += (hist.description or '')
         return res