62 lines
2.6 KiB
XML
62 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<data>
|
|
|
|
<!-- Graph view for question analysis-->
|
|
<record model="ir.ui.view" id="view_event_question_report_graph">
|
|
<field name="name">event.question.report.graph</field>
|
|
<field name="model">event.question.report</field>
|
|
<field name="arch" type="xml">
|
|
<graph string="Questions Analysis">
|
|
<field name="answer_id"/>
|
|
<field name="question_id"/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Pivot view for question analysis -->
|
|
<record model="ir.ui.view" id="view_event_question_report_pivot">
|
|
<field name="name">event.question.report.pivot</field>
|
|
<field name="model">event.question.report</field>
|
|
<field name="arch" type="xml">
|
|
<pivot string="Questions Analysis" disable_linking="True">
|
|
<field name="event_id" type="row"/>
|
|
<field name="attendee_id" type="row"/>
|
|
<field name="question_id" type="col"/>
|
|
<field name="answer_id" type="col"/>
|
|
</pivot>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Seach view for question analysis-->
|
|
<record model="ir.ui.view" id="view_event_question_report_search">
|
|
<field name="name">event.question.report.search</field>
|
|
<field name="model">event.question.report</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Questions Analysis">
|
|
<field name="event_id" string="Event"/>
|
|
<field name="attendee_id" string="Registration"/>
|
|
<group expand="1" string="Group By">
|
|
<filter string="Event" context="{'group_by': 'event_id'}" />
|
|
<filter string="Question" context="{'group_by': 'question_id'}"/>
|
|
<filter string="Answer" context="{'group_by': 'answer_id'}" />
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Action for reporting -->
|
|
<record model="ir.actions.act_window" id="action_event_question_report">
|
|
<field name="name">Questions Analysis</field>
|
|
<field name="res_model">event.question.report</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">graph,pivot</field>
|
|
</record>
|
|
|
|
<!-- Menu -->
|
|
<menuitem name="Questions" id="menu_report_event_questions"
|
|
parent="event.menu_reporting_events" action="action_event_question_report" sequence="4"/>
|
|
|
|
</data>
|
|
</flectra>
|