71 lines
4.2 KiB
XML
71 lines
4.2 KiB
XML
<?xml version="1.0"?>
|
|
<flectra>
|
|
<data>
|
|
|
|
<record id="im_livechat_report_channel_view_pivot" model="ir.ui.view">
|
|
<field name="name">im_livechat.report.channel.pivot</field>
|
|
<field name="model">im_livechat.report.channel</field>
|
|
<field name="arch" type="xml">
|
|
<pivot string="Livechat Support Statistics" disable_linking="True">
|
|
<field name="technical_name" type="row"/>
|
|
<field name="duration" type="measure"/>
|
|
<field name="nbr_message" type="measure"/>
|
|
</pivot>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="im_livechat_report_channel_view_graph" model="ir.ui.view">
|
|
<field name="name">im_livechat.report.channel.graph</field>
|
|
<field name="model">im_livechat.report.channel</field>
|
|
<field name="arch" type="xml">
|
|
<graph string="Livechat Support Statistics">
|
|
<field name="technical_name"/>
|
|
<field name="nbr_message" type="measure"/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="im_livechat_report_channel_view_search" model="ir.ui.view">
|
|
<field name="name">im_livechat.report.channel.search</field>
|
|
<field name="model">im_livechat.report.channel</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search report">
|
|
<filter name="missed_session" string="Missed sessions" domain="[('nbr_speaker','<=', 1)]"/>
|
|
<filter name="treated_session" string="Treated sessions" domain="[('nbr_speaker','>', 1)]"/>
|
|
<filter name="last_24h" string="Last 24h" domain="[('start_date','>', (context_today() - datetime.timedelta(days=1)).strftime('%%Y-%%m-%%d') )]"/>
|
|
<filter name="last_week" string="Last Week" domain="[('start_date','>', (context_today() - datetime.timedelta(weeks=1)).strftime('%%Y-%%m-%%d') )]"/>
|
|
<group expand="0" string="Group By...">
|
|
<filter name="group_by_session" string="Code" domain="[]" context="{'group_by':'technical_name'}"/>
|
|
<filter name="group_by_channel" string="Channel" domain="[]" context="{'group_by':'channel_id'}"/>
|
|
<filter name="group_by_operator" string="Operator" domain="[('partner_id','!=', False)]" context="{'group_by':'partner_id'}"/>
|
|
<separator orientation="vertical" />
|
|
<filter name="group_by_hour" string="Creation date (hour)" domain="[]" context="{'group_by':'start_date_hour'}"/>
|
|
<filter name="group_by_day" string="Creation date (day)" domain="[]" context="{'group_by':'start_date:day'}"/>
|
|
<filter name="group_by_week" string="Creation date (week)" domain="[]" context="{'group_by':'start_date:week'}"/>
|
|
<filter name="group_by_month" string="Creation date (month)" domain="[]" context="{'group_by':'start_date:month'}" />
|
|
<filter name="group_by_year" string="Creation date (year)" domain="[]" context="{'group_by':'start_date:year'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="im_livechat_report_channel_action" model="ir.actions.act_window">
|
|
<field name="name">Livechat Support Report Channel</field>
|
|
<field name="res_model">im_livechat.report.channel</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">graph,pivot</field>
|
|
<field name="context">{"search_default_last_week":1}</field>
|
|
<field name="help">Livechat Support Channel Statistics allows you to easily check and analyse your company livechat session performance. Extract information about the missed sessions, the audiance, the duration of a session, etc.</field>
|
|
</record>
|
|
|
|
<menuitem
|
|
id="menu_reporting_livechat_channel"
|
|
name="Session Statistics"
|
|
parent="menu_reporting_livechat"
|
|
sequence="10"
|
|
action="im_livechat_report_channel_action"/>
|
|
|
|
|
|
</data>
|
|
</flectra>
|