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');