[FIX] crm: 'email_last' not defined
authorolt@tinyerp.com <>
Mon, 29 Mar 2010 14:41:45 +0000 (16:41 +0200)
committerolt@tinyerp.com <>
Mon, 29 Mar 2010 14:41:45 +0000 (16:41 +0200)
bzr revid: olt@tinyerp.com-20100329144145-2zhm6s080xeoe3kw

addons/crm/crm.py

index d070009..6473ace 100644 (file)
@@ -379,7 +379,7 @@ class crm_case(osv.osv):
     def add_reply(self, cursor, user, ids, context=None):
         for case in self.browse(cursor, user, ids, context=context):
             if case.email_last:
-                description = email_last
+                description = case.email_last
                 self.write(cursor, user, case.id, {
                     'description': '> ' + description.replace('\n','\n> '),
                     }, context=context)