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[1]" position="before">
<button type="object" name="action_survey_user_input"
context="{'search_default_completed':1, 'link_only':1, 'search_default_partner_id': id}"
attrs="{'invisible':[('tot_sent_survey','=',0)]}" class="oe_stat_button">
<field string="Completed" name="sent_comp_ratio" widget="percentpie"/>
</button>
<button type="object" name="action_survey_user_input" class="oe_stat_button" icon="fa-pencil-square-o"
context="{'search_default_completed':1, 'link_only':1, 'search_default_partner_id': id}">
<field string="Answers" name="tot_comp_survey" widget="statinfo"/>
</button>
</xpath>
<xpath expr="//div[hasclass('oe_title')]" position="after">
<field name="tot_sent_survey" invisible="1"/>
<field name="tot_sent_comp_survey" invisible="1"/>
</xpath>
</field>
</record>
</odoo>