Odoo modules related to surveys
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
1.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="survey_survey_view_form" model="ir.ui.view">
<field name="name">survey_input_statistics survey.survey form</field>
<field name="model">survey.survey</field>
<field name="inherit_id" ref="survey.survey_survey_view_form" />
<field name="priority">24</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='answer_count']/.." position="after">
<button type="object" name="action_survey_user_input" class="oe_stat_button"
context="{'search_default_completed':1, 'search_default_in_progress':1, 'search_default_shared_invite':1}">
<field string="Started" name="answer_start_ratio" widget="percentpie" />
</button>
</xpath>
<xpath expr="//field[@name='answer_done_count']/.." position="after">
<button type="object" name="action_survey_user_input" class="oe_stat_button"
context="{'search_default_completed':1, 'search_default_shared_invite':1}">
<field string="Completed" name="answer_done_ratio" widget="percentpie" />
</button>
<xpath expr="//field[@name='success_count']/.." position="move" />
<button name="action_survey_user_input_certified" type="object" class="oe_stat_button"
attrs="{'invisible': [('certification', '=', False)]}">
<field string="Certified" name="success_ratio" widget="percentpie" />
</button>
</xpath>
<xpath expr="//div[hasclass('oe_title')]" position="after">
<field name="answer_start_count" invisible="1" />
</xpath>
</field>
</record>
</odoo>