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.4 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="survey_survey_view_form" model="ir.ui.view">
  4. <field name="name">survey_select_input survey.survey form</field>
  5. <field name="model">survey.survey</field>
  6. <field name="inherit_id" ref="survey.survey_survey_view_form" />
  7. <field name="priority">26</field>
  8. <field name="arch" type="xml">
  9. <xpath expr="//div[@name='button_box']" position="inside">
  10. <button type="object" name="action_survey_user_input"
  11. attrs="{'invisible': [('answer_selection','=',False)]}"
  12. context="{'search_default_selected':1}"
  13. class="oe_stat_button text-success" icon="fa-check-circle">
  14. <field name="answer_selected_count" string="Selected" widget="statinfo" />
  15. </button>
  16. <button type="object" name="action_survey_user_input"
  17. attrs="{'invisible': [('answer_selection','=',False)]}"
  18. context="{'search_default_selected':1}"
  19. class="oe_stat_button text-success">
  20. <field name="answer_selected_ratio" string="Selected" widget="percentpie" />
  21. </button>
  22. </xpath>
  23. <group name="participants" position="attributes">
  24. <attribute name="class">o_label_nowrap</attribute>
  25. </group>
  26. <group name="participants" position="inside">
  27. <field name="answer_selection" />
  28. </group>
  29. </field>
  30. </record>
  31. </odoo>