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.

54 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="survey_survey_form" model="ir.ui.view">
  4. <field name="name">survey_sent_input_ratio survey.survey form</field>
  5. <field name="model">survey.survey</field>
  6. <field name="inherit_id" ref="survey.survey_form"/>
  7. <field name="priority">24</field>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='tot_comp_survey']/.." position="before">
  10. <button type="object" name="action_survey_user_input"
  11. context="{'search_default_partially_completed':1, 'search_default_completed':0, 'link_only':1}"
  12. attrs="{'invisible':[('tot_sent_survey','=',0)]}" class="oe_stat_button">
  13. <field string="Started" name="sent_start_ratio" widget="percentpie"/>
  14. </button>
  15. <button type="object" name="action_survey_user_input"
  16. context="{'search_default_completed':1, 'link_only':1}"
  17. attrs="{'invisible':[('tot_sent_survey','=',0)]}" class="oe_stat_button">
  18. <field string="Completed" name="sent_comp_ratio" widget="percentpie"/>
  19. </button>
  20. </xpath>
  21. <xpath expr="//div[hasclass('oe_title')]" position="after">
  22. <field name="tot_sent_survey" invisible="1"/>
  23. <field name="tot_sent_start_survey" invisible="1"/>
  24. <field name="tot_sent_comp_survey" invisible="1"/>
  25. </xpath>
  26. </field>
  27. </record>
  28. <!-- <record id="survey_survey_tree" model="ir.ui.view">
  29. <field name="name">OT31 SURVEY survey.survey tree</field>
  30. <field name="model">survey.survey</field>
  31. <field name="inherit_id" ref="survey.survey_tree"/>
  32. <field name="priority">36</field>
  33. <field name="arch" type="xml">
  34. <field name="title" position="after">
  35. <field name="aa_type"/>
  36. </field>
  37. </field>
  38. </record> -->
  39. <!-- <record id="survey_survey_kanban" model="ir.ui.view">
  40. <field name="name">OT31 SURVEY survey.survey kanban</field>
  41. <field name="model">survey.survey</field>
  42. <field name="inherit_id" ref="survey.survey_kanban"/>
  43. <field name="priority">36</field>
  44. <field name="arch" type="xml">
  45. <field name="title" position="after">
  46. <field name="aa_type" readonly="1"/>
  47. </field>
  48. </field>
  49. </record> -->
  50. </odoo>