From c984e286f65bb7b46f2a437f71e3c1ccdfc89d62 Mon Sep 17 00:00:00 2001 From: "ajay javiya (OpenERP)" Date: Mon, 19 Nov 2012 14:56:52 +0530 Subject: [PATCH] [FIX]:fix issue for launch security and user message bzr revid: aja@tinyerp.com-20121119092652-69f58c4au9rlei95 --- addons/lunch/security/lunch_security.xml | 1 + addons/mail/static/src/js/mail.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/lunch/security/lunch_security.xml b/addons/lunch/security/lunch_security.xml index 75ab0836b12..3d7d6fd5c28 100644 --- a/addons/lunch/security/lunch_security.xml +++ b/addons/lunch/security/lunch_security.xml @@ -3,6 +3,7 @@ Lunch / Manager + Lunch / User diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index dc265a343d5..e1793d02223 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -274,7 +274,7 @@ openerp.mail = function (session) { //formating and add some fields for render if (this._date) { this.date = session.web.format_value(this._date, {type:"datetime"}); - this.timerelative = $.timeago(this.date); + this.timerelative = $.timeago(this._date); } if (this.type == 'email' && (!this.author_id || !this.author_id[0])) { this.avatar = ('/mail/static/src/img/email_icon.png');