From 7ad1d35443ee80a7ebf1e27e5ba721c6bdbbf084 Mon Sep 17 00:00:00 2001 From: David Beguin Date: Fri, 7 Sep 2018 16:07:50 +0200 Subject: [PATCH] [IMP] im_livechat : adds some design improvements in form and list views More and more people are using the Live Chat and complaining about it because it's not user friendly. This commit modifies a bit the design of the form and list view without changing the functionnality Improves im_livechat.channel kanban cards Improves the channel form view: Introduce tabs to manage the different aspect of the channel : Operators, Options, Widget, Rules Improves the session tree view: Sort by date desc, adds the number of messages per session and replace the rating last value by his corresponding icon. Improves livechat session form view: Introduce a kanban view that list all the messages of the session Improves livechat session rating view: For congruence inside the module, renaming 'Resource' group By filter into 'Code' as the rating resource_name in this case is the same as the session code. So we use the same terms in this view and in reports Task ID 1883227 --- .../static/src/scss/im_livechat_history.scss | 29 ++++ .../views/im_livechat_channel_templates.xml | 1 + .../views/im_livechat_channel_views.xml | 128 ++++++++++-------- .../im_livechat/views/mail_channel_views.xml | 75 +++++++--- addons/im_livechat/views/rating_views.xml | 3 + 5 files changed, 156 insertions(+), 80 deletions(-) create mode 100644 addons/im_livechat/static/src/scss/im_livechat_history.scss diff --git a/addons/im_livechat/static/src/scss/im_livechat_history.scss b/addons/im_livechat/static/src/scss/im_livechat_history.scss new file mode 100644 index 00000000000..31421eec3e0 --- /dev/null +++ b/addons/im_livechat/static/src/scss/im_livechat_history.scss @@ -0,0 +1,29 @@ +.o_history_container{ + > tbody > tr > td { + padding: 0px !important; + } + .o_history_kanban_container { + text-align:center; + .o_history_kanban_sub_container { + .o_kanban_ungrouped { + flex-flow: column; + max-height:500px; + overflow:auto; + .o_kanban_record { + min-width: 300px; + width: 98%; + } + } + .oe_module_vignette { + text-align:left; + } + .o_kanban_image { + padding-top: 8px; + } + .oe_module_desc { + padding: 8px 8px 8px 70px; + } + } + + } +} diff --git a/addons/im_livechat/views/im_livechat_channel_templates.xml b/addons/im_livechat/views/im_livechat_channel_templates.xml index fdc2c1513c5..59a2e8ff359 100644 --- a/addons/im_livechat/views/im_livechat_channel_templates.xml +++ b/addons/im_livechat/views/im_livechat_channel_templates.xml @@ -8,6 +8,7 @@ diff --git a/addons/im_livechat/views/im_livechat_channel_views.xml b/addons/im_livechat/views/im_livechat_channel_views.xml index 7bbb2f10668..79ecd245627 100644 --- a/addons/im_livechat/views/im_livechat_channel_views.xml +++ b/addons/im_livechat/views/im_livechat_channel_views.xml @@ -39,15 +39,19 @@ Channel
- +
+ + +
+
-

+

Operators
Sessions - -
- - +
@@ -76,6 +76,11 @@ im_livechat.channel
+
+
- - - - - - - - -
-
- User + + + + + + + + + +
+
+ User +
+
+

+
-
-

-
-
- - - - -

- Operators that do not show any activity In Odoo for more than 30 minutes will be considered as disconnected. -

- - - - - - - - -
- -

- Copy and paste this code into your website, within the <head> tag: -

- -

- or copy this url and send it by email to your customers or suppliers: -

- -

For website built with Odoo CMS, please install the website_livechat module. Then go to Website Admin > Configuration > Settings and select the Website Live Chat Channel you want to add on your website.

-
- - - - - Define rules for your live support channel. You can apply an action (disable the support, automatically open your support, or just make the button available) for the given URL, and per country.
To identify the country, GeoIP must be installed on your server, otherwise, the countries of the rule will not be taken into account.
+ + + + +

+ Operators that do not show any activity In Odoo for more than 30 minutes will be considered as disconnected. +

+ + + + + + + + + + + +
+ +

+ Copy and paste this code into your website, within the <head> tag: +

+ +

+ or copy this url and send it by email to your customers or suppliers: +

+ +

For website built with Odoo CMS, please install the website_livechat module. Then go to Website Admin > Configuration > Settings and select the Website Live Chat Channel you want to add on your website.

+
+
+
+ + + + + Define rules for your live support channel. You can apply an action (disable the support, automatically open your support, or just make the button available) for the given URL, and per country.
To identify the country, GeoIP must be installed on your server, otherwise, the countries of the rule will not be taken into account.
+
+ diff --git a/addons/im_livechat/views/mail_channel_views.xml b/addons/im_livechat/views/mail_channel_views.xml index 17217c6c36a..fedcfec4004 100644 --- a/addons/im_livechat/views/mail_channel_views.xml +++ b/addons/im_livechat/views/mail_channel_views.xml @@ -8,6 +8,8 @@ + + @@ -21,10 +23,11 @@ mail.channel.tree mail.channel - + - + + @@ -35,28 +38,59 @@
- +
+ + +
+
- - - - +
+ + +
+
+ + + + + + + + + +
+
+
+ + Avatar + + Anonymous +
+
+
+

+
+

+ + Anonymous +

+

+
+

+
+
+ +
+
+
+
+
+
+
- - - - - - -
@@ -70,7 +104,7 @@ tree,form [('livechat_channel_id', '!=', None)] - {} + {'search_default_session_not_empty': 1}

Your chatter history is empty @@ -102,6 +136,7 @@ { 'search_default_livechat_channel_id': [active_id], 'default_livechat_channel_id': active_id, + 'search_default_session_not_empty': 1, } diff --git a/addons/im_livechat/views/rating_views.xml b/addons/im_livechat/views/rating_views.xml index abaaf230080..2aad1e0fe9a 100644 --- a/addons/im_livechat/views/rating_views.xml +++ b/addons/im_livechat/views/rating_views.xml @@ -7,6 +7,9 @@ primary + + +