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.
 
 

28 lines
1.3 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_partner_form" model="ir.ui.view">
<field name="name">survey_partner_input res.partner form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="priority">24</field>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']/button[@name='action_view_certifications']" position="before">
<button type="object" name="action_survey_user_input" class="oe_stat_button"
context="{'search_default_shared_invite':1, 'search_default_by_state':1}"
groups="survey.group_survey_user">
<field string="Completed" name="answer_done_ratio" widget="percentpie" />
</button>
<button type="object" name="action_survey_user_input" class="oe_stat_button" icon="fa-pencil-square-o"
context="{'search_default_shared_invite':1, 'search_default_completed':1, 'search_default_group_by_survey':1}"
groups="survey.group_survey_user">
<field string="Completed" name="answer_done_count" widget="statinfo" />
</button>
</xpath>
<xpath expr="//div[hasclass('oe_title')]" position="after">
<field name="answer_count" invisible="1" groups="survey.group_survey_user" />
</xpath>
</field>
</record>
</odoo>