2013-02-04 13:47:31 +00:00
<?xml version="1.0"?>
<openerp >
<data >
2013-03-15 11:21:53 +00:00
<menuitem id= "im_livechat" name= "Live Chat" parent= "mail.mail_feeds_main" groups= "group_im_livechat" />
2013-02-04 13:47:31 +00:00
<record model= "ir.actions.act_window" id= "action_support_channels" >
2013-02-12 18:48:16 +00:00
<field name= "name" > Live Chat Channels</field>
2013-03-15 11:21:53 +00:00
<field name= "res_model" > im_livechat.channel</field>
2013-02-12 16:49:29 +00:00
<field name= "view_mode" > kanban,form</field>
2013-02-12 18:48:16 +00:00
<field name= "help" type= "html" >
<p class= "oe_view_nocontent_create" >
Click to define a new live chat channel.
</p> <p >
You can create channels for each website on which you want
to integrate the live chat widget, allowing you website
visitors to talk in real time with your operators.
2013-02-13 10:49:18 +00:00
</p> <p >
Each channel has it's own URL that you can send by email to
your customers in order to start chatting with you.
2013-02-12 18:48:16 +00:00
</p>
</field>
2013-02-04 13:47:31 +00:00
</record>
2013-03-15 11:21:53 +00:00
<menuitem name= "Channels" parent= "im_livechat" id= "support_channels" action= "action_support_channels" groups= "group_im_livechat" />
2013-02-04 15:36:12 +00:00
2013-02-12 16:49:29 +00:00
<record model= "ir.ui.view" id= "support_channel_kanban" >
<field name= "name" > support_channel.kanban</field>
2013-03-15 11:21:53 +00:00
<field name= "model" > im_livechat.channel</field>
2013-02-12 16:49:29 +00:00
<field name= "arch" type= "xml" >
<kanban >
<field name= "name" />
2014-07-06 14:44:26 +00:00
<field name= "web_page" widget= "url" />
2013-02-12 16:49:29 +00:00
<field name= "are_you_inside" />
<field name= "user_ids" />
<templates >
<t t-name= "kanban-box" >
2013-02-13 10:49:18 +00:00
<div class= "oe_group_image" >
2013-03-15 11:21:53 +00:00
<a type= "open" > <img t-att-src= "kanban_image('im_livechat.channel', 'image_medium', record.id.value)" class= "oe_group_photo" /> </a>
2013-02-13 10:49:18 +00:00
</div>
2013-02-12 16:49:29 +00:00
<div class= "oe_group_details" >
<h4 > <a type= "open" > <field name= "name" /> </a> </h4>
<div class= "oe_kanban_footer_left" >
<span >
<span class= "oe_e" > +</span> <t t-esc= "(record.user_ids.raw_value || []).length" />
</span>
</div>
<div class= "oe_group_button" >
<button t-if= "record.are_you_inside.raw_value" name= "quit" type= "object" class= "oe_group_join" > Quit</button>
<button t-if= "! record.are_you_inside.raw_value" name= "join" type= "object" > Join</button>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<record id= "support_channel_form" model= "ir.ui.view" >
2013-02-04 15:36:12 +00:00
<field name= "name" > support_channel.form</field>
2013-03-15 11:21:53 +00:00
<field name= "model" > im_livechat.channel</field>
2013-02-04 15:36:12 +00:00
<field name= "arch" type= "xml" >
2014-06-29 01:46:29 +00:00
<form string= "Support Channels" version= "7.0" >
2013-02-04 15:36:12 +00:00
<sheet >
2013-02-13 09:07:14 +00:00
<field name= "image" widget= 'image' class= "oe_avatar oe_left" options= '{"preview_image": "image_medium"}' />
<div class= "oe_title" >
<label for= "name" class= "oe_edit_only" />
<h1 >
<field name= "name" placeholder= "e.g. YourWebsite.com" />
</h1>
<div >
2013-02-13 10:43:21 +00:00
<button type= "object" name= "join" class= "oe_highlight" string= "Join Channel" attrs= '{"invisible": [["are_you_inside", "=", True]]}' />
<button type= "object" name= "quit" string= "Leave Channel" attrs= '{"invisible": [["are_you_inside", "=", False]]}' />
<button type= "object" name= "test_channel" string= "Test" attrs= '{"invisible": [["web_page", "=", False]]}' />
2013-02-13 09:07:14 +00:00
<field name= "are_you_inside" invisible= "1" />
</div>
2013-02-05 14:52:54 +00:00
</div>
2013-02-13 09:07:14 +00:00
2013-02-13 10:43:21 +00:00
<group >
<group string= "Operators" >
<field name= "user_ids" widget= "many2many_kanban" nolabel= "1" colspan= "2" >
<kanban >
<field name= "name" />
<templates >
<t t-name= "kanban-box" >
<div >
2013-02-13 15:04:09 +00:00
<a t-if= "! read_only_mode" type= "delete" style= "position: absolute; right: 0; padding: 4px; diplay: inline-block" > X</a>
2013-02-13 10:43:21 +00:00
<div class= "oe_group_details" style= "min-height: 40px" >
2013-02-25 11:06:30 +00:00
<img t-att-src= "kanban_image('res.users', 'image', record.id.value)"
2013-02-13 10:43:21 +00:00
class="oe_avatar oe_kanban_avatar_smallbox" style="float:left; margin-right: 10px;"/>
<h4 > <field name= "name" /> </h4>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</group>
<group string= "Options" >
<field name= "button_text" />
<field name= "input_placeholder" />
2013-02-13 11:38:23 +00:00
<field name= "default_message" placeholder= "e.g. Hello, how may I help you?" />
2013-02-13 10:43:21 +00:00
</group>
</group>
2013-02-13 09:07:14 +00:00
2013-02-13 10:43:21 +00:00
<div attrs= '{"invisible": [["web_page", "=", False]]}' >
<separator string= "How to use the Live Chat widget?" />
<p >
Copy and paste this code into your website, within the & lt;head& gt; tag:
</p>
2014-06-29 01:46:29 +00:00
<field name= "script_external" readonly= "1" class= "oe_tag" />
2013-02-13 10:43:21 +00:00
<p >
or copy this url and send it by email to your customers or suppliers:
</p>
2014-07-06 14:44:26 +00:00
<field name= "web_page" readonly= "1" class= "oe_tag" widget= "url" />
2014-06-29 01:46:29 +00:00
<p > For website built with Odoo CMS, please install the website_livechat module. Then go to Settings > Website Settings and select the Live Chat Channel you want to add on your website.</p>
2013-02-13 10:43:21 +00:00
</div>
2013-02-12 17:27:38 +00:00
2013-02-04 15:36:12 +00:00
</sheet>
</form>
</field>
</record>
2013-02-13 13:24:00 +00:00
<record model= "ir.actions.act_window" id= "action_history" >
<field name= "name" > History</field>
2014-06-29 01:46:29 +00:00
<field name= "res_model" > im_chat.message</field>
2013-02-13 13:24:00 +00:00
<field name= "view_mode" > list</field>
2014-06-29 01:46:29 +00:00
<field name= "domain" > [('to_id.channel_id', '!=', None)]</field>
<field name= "context" > {'search_default_group_by_to_id': 1}</field>
2013-02-13 13:24:00 +00:00
</record>
2013-03-15 11:21:53 +00:00
<menuitem name= "History" parent= "im_livechat" id= "history" action= "action_history" groups= "group_im_livechat_manager" />
2013-02-13 13:24:00 +00:00
<record id= "im_message_form" model= "ir.ui.view" >
2014-06-29 01:46:29 +00:00
<field name= "name" > im.chat.message.tree</field>
<field name= "model" > im_chat.message</field>
2013-02-13 13:24:00 +00:00
<field name= "arch" type= "xml" >
2014-01-28 16:23:04 +00:00
<tree string= "History" create= "false" >
2014-06-29 01:46:29 +00:00
<field name= "to_id" />
<field name= "create_date" />
2013-09-02 13:56:01 +00:00
<field name= "from_id" />
2013-02-13 13:24:00 +00:00
<field name= "message" />
</tree>
</field>
</record>
2013-02-04 13:47:31 +00:00
2014-01-28 16:26:49 +00:00
<record id= "im_message_search" model= "ir.ui.view" >
2014-06-29 01:46:29 +00:00
<field name= "name" > im.chat.message.search</field>
<field name= "model" > im_chat.message</field>
2014-01-28 16:26:49 +00:00
<field name= "arch" type= "xml" >
<search string= "Search history" >
2014-06-29 01:46:29 +00:00
<filter name= "to_id" string= "My Sessions" domain= "[('to_id.user_ids','in', uid)]" />
2014-01-28 16:26:49 +00:00
<field name= "from_id" />
<field name= "to_id" />
2014-06-29 01:46:29 +00:00
<group expand= "0" string= "Group By..." >
<filter name= "group_by_to_id" string= "Session" domain= "[]" context= "{'group_by':'to_id'}" />
<filter name= "group_by_date" string= "Date" domain= "[]" context= "{'group_by':'create_date'}" />
2014-01-28 16:26:49 +00:00
</group>
</search>
</field>
</record>
2013-02-04 13:47:31 +00:00
</data>
2013-02-12 18:48:16 +00:00
</openerp>