From 300556bc1f9c0753fc50f7c02067ad63d000ef1b Mon Sep 17 00:00:00 2001 From: "rpa (Open ERP)" Date: Thu, 26 Aug 2010 17:30:20 +0530 Subject: [PATCH] [FIX]: email_template: Fix problem of historise sent mail bzr revid: rpa@tinyerp.com-20100826120020-qgnjef74qrg385l1 --- addons/email_template/email_template_mailbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/email_template/email_template_mailbox.py b/addons/email_template/email_template_mailbox.py index e60ea89c652..3f52b9340ac 100644 --- a/addons/email_template/email_template_mailbox.py +++ b/addons/email_template/email_template_mailbox.py @@ -100,7 +100,7 @@ class email_template_mailbox(osv.osv): def historise(self, cr, uid, ids, message='', context=None): for id in ids: history = self.read(cr, uid, id, ['history'], context).get('history', '') - self.write(cr, uid, id, {'history':history or '' + "\n" + time.strftime("%Y-%m-%d %H:%M:%S") + ": " + tools.ustr(message)}, context) + self.write(cr, uid, id, {'history': (history or '' )+ "\n" + time.strftime("%Y-%m-%d %H:%M:%S") + ": " + tools.ustr(message)}, context) _columns = { 'email_from':fields.char(