summaryrefslogtreecommitdiff
path: root/addons/im_livechat/report
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2015-01-08 11:34:16 +0100
committerJérome Maes <jem@openerp.com>2015-01-08 12:28:22 +0100
commitade60d54bbbc5c9315346a8ede7f79dc6d4eb80a (patch)
tree3509ed8f7a500248171a70bdb957e604128628e2 /addons/im_livechat/report
parentc8581af5921c0b5deb780658926d0953023b2a0d (diff)
[IMP] im_livechat : make the feedback for livechat a standart feature using the rating mixin. Create a dependancy to rating.
Diffstat (limited to 'addons/im_livechat/report')
-rw-r--r--addons/im_livechat/report/im_livechat_report.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/addons/im_livechat/report/im_livechat_report.py b/addons/im_livechat/report/im_livechat_report.py
index 44564f2d9d6..1237ee97333 100644
--- a/addons/im_livechat/report/im_livechat_report.py
+++ b/addons/im_livechat/report/im_livechat_report.py
@@ -18,7 +18,6 @@ class im_livechat_report(osv.Model):
'nbr_messages': fields.integer('Average message', readonly=True, group_operator="avg", help="Number of message in the conversation"),
'nbr_user_messages': fields.integer('Average of messages/user', readonly=True, group_operator="avg", help="Average number of message per user"),
'nbr_speakers': fields.integer('# of speakers', readonly=True, group_operator="avg", help="Number of different speakers"),
- 'rating': fields.float('Rating', readonly=True, group_operator="avg", help="Average Rating"),
'user_id': fields.many2one('res.users', 'User', readonly=True),
'session_id': fields.many2one('im_chat.session', 'Session', readonly=True),
'channel_id': fields.many2one('im_livechat.channel', 'Channel', readonly=True),
@@ -42,7 +41,6 @@ class im_livechat_report(osv.Model):
(SELECT count(distinct COALESCE(from_id, 0)) FROM im_chat_message WHERE to_id=S.id) as nbr_speakers,
(SELECT count(id) FROM im_chat_message WHERE to_id=S.id) as nbr_messages,
count(M.id) as nbr_user_messages,
- CAST(S.feedback_rating AS INT) as rating,
U.id as user_id,
S.channel_id as channel_id,
S.id as session_id