From 35b51a2efdd85f4089787243b5e13890d4835c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 3 Apr 2013 16:51:51 +0200 Subject: [PATCH] [IMP] Chatter: improved footer of chatter messages: better differentiation of logged a note / send a message / system notification, with or without recipients. bzr revid: tde@openerp.com-20130403145151-nvpeqdpp937079iu --- addons/mail/mail_message.py | 1 + addons/mail/static/src/css/mail.css | 3 +++ addons/mail/static/src/js/mail.js | 1 + addons/mail/static/src/xml/mail.xml | 21 +++++++++++++++++---- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py index a8fba3022e1..669b017a86f 100644 --- a/addons/mail/mail_message.py +++ b/addons/mail/mail_message.py @@ -366,6 +366,7 @@ class mail_message(osv.Model): return {'id': message.id, 'type': message.type, + 'subtype': message.subtype_id.name if message.subtype_id else False, 'body': body_html, 'model': message.model, 'res_id': message.res_id, diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index 77dfb806f77..a3d8dca6490 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -57,6 +57,9 @@ .openerp .oe_mail .oe_msg.oe_msg_nobody{ background: #F8F8F8; } +.openerp .oe_mail .oe_msg.oe_msg_notification{ + background: #F8F8F8; +} .openerp .oe_mail .oe_msg .oe_msg_left{ position: absolute; left:0; top: 0; bottom: 0; width: 40px; diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index f992a385c3e..cc34483c17b 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -217,6 +217,7 @@ openerp.mail = function (session) { this.res_id = datasets.res_id || this.context.default_res_id || false, this.parent_id = datasets.parent_id || false, this.type = datasets.type || false, + this.subtype = datasets.subtype || false, this.is_author = datasets.is_author || false, this.is_private = datasets.is_private || false, this.subject = datasets.subject || false, diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index db53a60cdbc..7e7d772397a 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -226,7 +226,7 @@ -
+
@@ -263,13 +263,23 @@ - + + updated document + + + + + logged a note - + to + + nobody + - + @@ -279,6 +289,9 @@ and more + + notified +