2013-02-04 13:47:31 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2013-02-12 18:48:16 +00:00
|
|
|
<menuitem id="live_support" name="Live Chat" parent="mail.mail_feeds_main" groups="group_live_support"/>
|
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-02-04 13:47:31 +00:00
|
|
|
<field name="res_model">live_support.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.
|
|
|
|
</p>
|
|
|
|
</field>
|
2013-02-04 13:47:31 +00:00
|
|
|
</record>
|
2013-02-12 18:48:16 +00:00
|
|
|
<menuitem name="Channels" parent="live_support" id="support_channels" action="action_support_channels" groups="group_live_support"/>
|
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>
|
|
|
|
<field name="model">live_support.channel</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<kanban>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="web_page"/>
|
|
|
|
<field name="are_you_inside"/>
|
|
|
|
<field name="user_ids"/>
|
|
|
|
<templates>
|
|
|
|
<t t-name="kanban-box">
|
|
|
|
<div class="oe_group_details">
|
|
|
|
<h4><a type="open"><field name="name"/></a></h4>
|
2013-02-12 17:05:33 +00:00
|
|
|
<a t-att-href="record.web_page.raw_value">Test it</a>
|
2013-02-12 16:49:29 +00:00
|
|
|
<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>
|
|
|
|
<field name="model">live_support.channel</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Support Channels" version="7.0">
|
|
|
|
<sheet>
|
|
|
|
<h1>
|
|
|
|
<field name="name"/>
|
|
|
|
</h1>
|
2013-02-05 14:52:54 +00:00
|
|
|
<div style="margin-bottom: 12px">
|
|
|
|
<button type="object" name="join" string="Join" attrs='{"invisible": [["are_you_inside", "=", True]]}'/>
|
|
|
|
<button type="object" name="quit" string="Quit" attrs='{"invisible": [["are_you_inside", "=", False]]}'/>
|
|
|
|
</div>
|
|
|
|
<field name="are_you_inside" invisible="1"/>
|
|
|
|
<label for="user_ids" colspan="2"/>
|
2013-02-12 17:23:06 +00:00
|
|
|
<field name="user_ids" readonly="1" nolabel="1" colspan="2" widget="many2many_kanban">
|
|
|
|
<kanban>
|
|
|
|
<field name="name"/>
|
|
|
|
<templates>
|
|
|
|
<t t-name="kanban-box">
|
|
|
|
<div>
|
|
|
|
<div class="oe_group_details" style="min-height: 40px">
|
|
|
|
<img t-att-src="kanban_image('im.user', 'image', record.id.value)"
|
|
|
|
class="oe_avatar oe_kanban_avatar_smallbox" style="float:left; margin-right: 10px;"/>
|
|
|
|
<h4><field name="name"/></h4>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</templates>
|
|
|
|
</kanban>
|
|
|
|
</field>
|
2013-02-12 17:27:38 +00:00
|
|
|
<label for="web_page" colspan="2"/>
|
|
|
|
<field name="web_page" readonly="1" nolabel="1" colspan="2"/>
|
2013-02-05 15:15:06 +00:00
|
|
|
<label for="script" colspan="2"/>
|
|
|
|
<field name="script" readonly="1" nolabel="1" colspan="2"/>
|
2013-02-12 17:27:38 +00:00
|
|
|
|
|
|
|
<group col="4">
|
|
|
|
<field name="button_text"/>
|
|
|
|
<field name="input_placeholder"/>
|
|
|
|
<field name="default_message"/>
|
|
|
|
</group>
|
2013-02-04 15:36:12 +00:00
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-02-04 13:47:31 +00:00
|
|
|
|
|
|
|
</data>
|
2013-02-12 18:48:16 +00:00
|
|
|
</openerp>
|