From 2f708369cbc2fa434e04b93c0b597ae0d7e3e803 Mon Sep 17 00:00:00 2001 From: "ajay javiya (OpenERP)" Date: Tue, 24 Sep 2013 19:00:41 +0530 Subject: [PATCH] [IMP][REM]: Improve code and remove unused method bzr revid: aja@tinyerp.com-20130924133041-0j2k8qc5ubjxwghx --- addons/mail/mail_thread.py | 2 +- addons/mail/static/src/js/mail.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 381c74e2f53..47022f88f84 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -1319,7 +1319,7 @@ class mail_thread(osv.AbstractModel): #raise error on comment message if user is not employee employee = self._check_user_is_employee(cr, uid, context=context) if not employee and type == 'comment': - raise orm.except_orm(_('Access Denied'),_('Restricted to employees.')) + raise orm.except_orm(_('Warning'),_('Restricted to employees.')) # if we're processing a message directly coming from the gateway, the destination model was # set in the context. diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 84799e2c64d..1f22d9050b4 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -1794,7 +1794,6 @@ openerp.mail = function (session) { this._super.apply(this, arguments); this.ParentViewManager = parent; this.node = _.clone(node); - console.log(self.node); this.node.params = _.extend({ 'display_indented_thread': -1, 'show_reply_button': false,