summaryrefslogtreecommitdiff
path: root/addons/im_support/static/src/xml/discuss.xml
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-05-18 13:17:42 +0200
committerAaron Bohy <aab@odoo.com>2018-05-28 07:30:12 +0200
commit2aeb7637689e3bd0e124b8effeb3f294e80eaad1 (patch)
tree1fce7bec5c0c5d8b511d1d0bb8437ff20ddd0732 /addons/im_support/static/src/xml/discuss.xml
parent10161f9d61fd4107ac48abdd6e243b3c9c7405cb (diff)
[ADD] im_support
This rev. adds a new module enabling the livechat support from the webclient. It allows employee users to communicate with livechat operators of another database, assuming that a counterpart addon is installed on that database. Task 26762 Co-authored-by: Adrien Dieudonne <adr@odoo.com>
Diffstat (limited to 'addons/im_support/static/src/xml/discuss.xml')
-rw-r--r--addons/im_support/static/src/xml/discuss.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/addons/im_support/static/src/xml/discuss.xml b/addons/im_support/static/src/xml/discuss.xml
new file mode 100644
index 00000000000..4797c688d1a
--- /dev/null
+++ b/addons/im_support/static/src/xml/discuss.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<template>
+
+ <t t-extend="mail.chat.Sidebar">
+ <t t-jquery="hr" t-operation="before">
+ <t t-foreach="channels" t-as="channel">
+ <t t-if="channel.type == 'livechat'">
+ <div t-attf-class="o_mail_chat_title_main o_mail_chat_channel_item #{(active_channel_id == channel.id) ? 'o_active': ''}"
+ t-att-data-channel-id="channel.id">
+ <span class="o_channel_name"><i class="fa fa-question-circle mr8"/>Odoo Support</span>
+ <t t-set="counter" t-value="0"/>
+ <t t-call="mail.chat.SidebarNeedaction"/>
+ </div>
+ </t>
+ </t>
+ </t>
+ </t>
+
+</template>