From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/im_livechat/views/digest_views.xml | 17 ++ .../views/im_livechat_channel_templates.xml | 224 ++++++++++++++ .../views/im_livechat_channel_views.xml | 332 +++++++++++++++++++++ addons/im_livechat/views/mail_channel_views.xml | 155 ++++++++++ addons/im_livechat/views/rating_views.xml | 52 ++++ addons/im_livechat/views/res_users_views.xml | 32 ++ 6 files changed, 812 insertions(+) create mode 100644 addons/im_livechat/views/digest_views.xml create mode 100644 addons/im_livechat/views/im_livechat_channel_templates.xml create mode 100644 addons/im_livechat/views/im_livechat_channel_views.xml create mode 100644 addons/im_livechat/views/mail_channel_views.xml create mode 100644 addons/im_livechat/views/rating_views.xml create mode 100644 addons/im_livechat/views/res_users_views.xml (limited to 'addons/im_livechat/views') diff --git a/addons/im_livechat/views/digest_views.xml b/addons/im_livechat/views/digest_views.xml new file mode 100644 index 00000000..4082b295 --- /dev/null +++ b/addons/im_livechat/views/digest_views.xml @@ -0,0 +1,17 @@ + + + + im.livechat.digest.digest.view.form.inherit + digest.digest + + + + + + + + + + + + diff --git a/addons/im_livechat/views/im_livechat_channel_templates.xml b/addons/im_livechat/views/im_livechat_channel_templates.xml new file mode 100644 index 00000000..da4a0a62 --- /dev/null +++ b/addons/im_livechat/views/im_livechat_channel_templates.xml @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/im_livechat/views/im_livechat_channel_views.xml b/addons/im_livechat/views/im_livechat_channel_views.xml new file mode 100644 index 00000000..72fab109 --- /dev/null +++ b/addons/im_livechat/views/im_livechat_channel_views.xml @@ -0,0 +1,332 @@ + + + + + + Website Live Chat Channels + im_livechat.channel + kanban,form + +

+ Define a new website live chat channel +

+ You can create channels for each website on which you want + to integrate the website live chat widget, allowing your website + visitors to talk in real time with your operators. +

+
+
+ + + im_livechat.channel.kanban + im_livechat.channel + + + + + + + + + + + +
+
+ Channel +
+
+
+ + +
+ +
+
+ + Operators +
+ + Sessions + +
+
+
+
+
+
+
+
+
+ + + im_livechat.channel.form + im_livechat.channel + +
+
+
+ +
+ + +
+ +
+
+ + + + + + + + + +
+
+ User +
+
+

+
+
+
+
+
+
+

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

+
+
+ + + + + + + + + + + + + Define rules for your live support channel. You can apply an action 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.
+ + + +
+ + + + + +
+ +

+ 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 websites built with the Odoo CMS, go to Website > Configuration > Settings and select the Website Live Chat Channel you want to add to your website.

+
+
+
+
+
+
+
+
+ + + im.livechat.channel.view.search + im_livechat.channel + + + + + + + + + + im.livechat.channel.rule.tree + im_livechat.channel.rule + + + + + + + + + + + + im_livechat.channel.rule.kanban + im_livechat.channel.rule + + + + + + + +
+
+ + +
+
+
+
+
+
+ + + im_livechat.channel.rule.form + im_livechat.channel.rule + form + +
+ + + + + + +
+
+
+ + + + im_livechat.canned_response.tree + mail.shortcode + + + + + + + + + + Canned Responses + mail.shortcode + tree + + [] + +

+ Create a new canned response +

+ Canned responses allow you to insert prewritten responses in + your messages by typing :shortcut. The shortcut is + replaced directly in your message, so that you can still edit + it before sending. +

+
+
+ + + + + + + + + + + + + + + + + +
+
diff --git a/addons/im_livechat/views/mail_channel_views.xml b/addons/im_livechat/views/mail_channel_views.xml new file mode 100644 index 00000000..a9e03b81 --- /dev/null +++ b/addons/im_livechat/views/mail_channel_views.xml @@ -0,0 +1,155 @@ + + + + + + mail.channel.search + mail.channel + + + + + + + + + + + + + + mail.channel.tree + mail.channel + + + + + + + + + + + + mail.channel.form + mail.channel + +
+ +
+ + +
+
+ + + + +
+ + +
+
+ + + + + + + + + +
+
+
+ + Avatar + + Anonymous +
+
+
+

+
+

+ + Anonymous +

+

+
+

+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + + + History + mail.channel + tree,form + + [('livechat_channel_id', '!=', None)] + {'search_default_session_not_empty': 1} + +

+ Your chatter history is empty +

+ Create a channel and start chatting to fill up your history. +

+
+
+ + 1 + tree + + + + + + 2 + form + + + + + + + Sessions + mail.channel + tree,form + [('livechat_channel_id', 'in', [active_id]), ('channel_message_ids', '!=', False)] + { + 'search_default_livechat_channel_id': [active_id], + 'default_livechat_channel_id': active_id, + } + + + + 1 + tree + + + + + + 2 + form + + + + + +
+
diff --git a/addons/im_livechat/views/rating_views.xml b/addons/im_livechat/views/rating_views.xml new file mode 100644 index 00000000..91b8d1a7 --- /dev/null +++ b/addons/im_livechat/views/rating_views.xml @@ -0,0 +1,52 @@ + + + + + rating.rating.search.livechat + rating.rating + + primary + + + + + + + + + + + + + + + + Ratings for livechat channel + rating.rating + kanban,tree,graph,pivot,form + [('parent_res_model','=','im_livechat.channel'), ('consumed','=',True)] + + +

+ There is no rating for this channel at the moment +

+
+ {'search_default_rating_last_7_days': 1} +
+ + + Customer Ratings + rating.rating + kanban,tree,pivot,graph,form + [('parent_res_model','=','im_livechat.channel'), ('consumed', '=', True)] + + +

+ No customer ratings on live chat session yet +

+
+
+ +
diff --git a/addons/im_livechat/views/res_users_views.xml b/addons/im_livechat/views/res_users_views.xml new file mode 100644 index 00000000..0ded2190 --- /dev/null +++ b/addons/im_livechat/views/res_users_views.xml @@ -0,0 +1,32 @@ + + + + + + + res.users.preferences.form.im_livechat + res.users + + + + + + + + + + + res.users.form.im_livechat + res.users + + + + + + + + + + + + -- cgit v1.2.3