<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <record model="ir.ui.view" id="reporting_context_view_form">
            <field name="model">marketing.automation.reporting.context</field>
            <field name="type">form</field>
            <field name="name">reporting_context_form</field>
        </record>

        <record model="ir.ui.view" id="reporting_scenario_view_list">
            <field name="model">marketing.automation.reporting.scenario</field>
            <field name="type">tree</field>
            <field name="name">reporting_scenario_list</field>
        </record>

        <record model="ir.ui.view" id="reporting_scenario_view_graph_rate">
            <field name="model">marketing.automation.reporting.scenario</field>
            <field name="type">graph</field>
            <field name="name">reporting_scenario_graph_rate</field>
        </record>

        <record model="ir.ui.view" id="reporting_scenario_view_graph_count">
            <field name="model">marketing.automation.reporting.scenario</field>
            <field name="type">graph</field>
            <field name="name">reporting_scenario_graph_count</field>
        </record>

        <record model="ir.action.act_window" id="act_reporting_scenario">
            <field name="name">Scenario Reporting</field>
            <field name="res_model">marketing.automation.reporting.scenario</field>
            <field name="domain" eval="[('scenario', 'in', Eval('active_ids', []))]" pyson="1"/>
            <field name="context_model">marketing.automation.reporting.context</field>
        </record>
        <record model="ir.action.act_window.view" id="act_reporting_scenario_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="reporting_scenario_view_list"/>
            <field name="act_window" ref="act_reporting_scenario"/>
        </record>
        <record model="ir.action.act_window.view" id="act_reporting_scenario_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="reporting_scenario_view_graph_rate"/>
            <field name="act_window" ref="act_reporting_scenario"/>
        </record>
        <record model="ir.action.act_window.view" id="act_reporting_scenario_view3">
            <field name="sequence" eval="30"/>
            <field name="view" ref="reporting_scenario_view_graph_count"/>
            <field name="act_window" ref="act_reporting_scenario"/>
        </record>
        <record model="ir.action.keyword" id="act_reporting_scenario_keyword">
            <field name="keyword">form_relate</field>
            <field name="model">marketing.automation.scenario,-1</field>
            <field name="action" ref="act_reporting_scenario"/>
        </record>

        <record model="ir.ui.view" id="reporting_activity_view_list">
            <field name="model">marketing.automation.reporting.activity</field>
            <field name="type">tree</field>
            <field name="name">reporting_activity_list</field>
        </record>

        <record model="ir.ui.view" id="reporting_activity_view_graph_rate">
            <field name="model">marketing.automation.reporting.activity</field>
            <field name="type">graph</field>
            <field name="name">reporting_activity_graph_rate</field>
        </record>

        <record model="ir.ui.view" id="reporting_activity_view_graph_count">
            <field name="model">marketing.automation.reporting.activity</field>
            <field name="type">graph</field>
            <field name="name">reporting_activity_graph_count</field>
        </record>

        <record model="ir.action.act_window" id="act_reporting_activity">
            <field name="name">Activity Reporting</field>
            <field name="res_model">marketing.automation.reporting.activity</field>
            <field name="domain" eval="[('activity', 'in', Eval('active_ids', []))]" pyson="1"/>
            <field name="context_model">marketing.automation.reporting.context</field>
        </record>
        <record model="ir.action.act_window.view" id="act_reporting_activity_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="reporting_activity_view_list"/>
            <field name="act_window" ref="act_reporting_activity"/>
        </record>
        <record model="ir.action.act_window.view" id="act_reporting_activity_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="reporting_activity_view_graph_rate"/>
            <field name="act_window" ref="act_reporting_activity"/>
        </record>
        <record model="ir.action.act_window.view" id="act_reporting_activity_view3">
            <field name="sequence" eval="30"/>
            <field name="view" ref="reporting_activity_view_graph_count"/>
            <field name="act_window" ref="act_reporting_activity"/>
        </record>
        <record model="ir.action.keyword" id="act_reporting_activity_keyword">
            <field name="keyword">form_relate</field>
            <field name="model">marketing.automation.activity,-1</field>
            <field name="action" ref="act_reporting_activity"/>
        </record>
    </data>
</tryton>
