[FIX]: email_template: Fix problem of historise sent mail

bzr revid: rpa@tinyerp.com-20100826120020-qgnjef74qrg385l1
This commit is contained in:
rpa (Open ERP) 2010-08-26 17:30:20 +05:30
parent 06c2555b30
commit 300556bc1f
1 changed files with 1 additions and 1 deletions

View File

@ -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(