From 14a0d1b09274028311a8b2ce8fe01395cf5ba4df Mon Sep 17 00:00:00 2001 From: "Bhumi Thakkar (Open ERP)" Date: Thu, 7 Feb 2013 10:41:20 +0530 Subject: [PATCH] [IMP] Add model name instead of document with Created in chatter. bzr revid: bth@tinyerp.com-20130207051120-1abjmfuukjfyac7z --- addons/mail/mail_thread.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 9d7237ca907..03ff875da8d 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -35,6 +35,7 @@ from openerp import SUPERUSER_ID from openerp.addons.mail.mail_message import decode from openerp.osv import fields, osv from openerp.tools.safe_eval import safe_eval as eval +from openerp.tools.translate import _ _logger = logging.getLogger(__name__) @@ -247,7 +248,7 @@ class mail_thread(osv.AbstractModel): # automatic logging unless asked not to (mainly for various testing purpose) if not context.get('mail_create_nolog'): - self.message_post(cr, uid, thread_id, body='Document created', context=context) + self.message_post(cr, uid, thread_id, body=_('%s created') % (self._description), context=context) return thread_id def write(self, cr, uid, ids, values, context=None):