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.

62 lines
2.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="survey_user_input_form" model="ir.ui.view">
  4. <field name="name">survey_input_dates survey.user_input form</field>
  5. <field name="model">survey.user_input</field>
  6. <field name="inherit_id" ref="survey.survey_user_input_form"/>
  7. <field name="priority">26</field>
  8. <field name="groups_id" eval="[(6,0,[ref('survey.group_survey_manager')])]"/>
  9. <field name="arch" type="xml">
  10. <field name="date_create" position="after">
  11. <field name="date_start"/>
  12. <field name="date_done"/>
  13. <field name="duration" widget="duration" options="{'unit': 'second', 'round': 'second'}"/>
  14. </field>
  15. </field>
  16. </record>
  17. <record id="survey_user_input_tree" model="ir.ui.view">
  18. <field name="name">survey_input_dates survey.user_input tree</field>
  19. <field name="model">survey.user_input</field>
  20. <field name="inherit_id" ref="survey.survey_user_input_tree"/>
  21. <field name="priority">26</field>
  22. <field name="groups_id" eval="[(6,0,[ref('survey.group_survey_manager')])]"/>
  23. <field name="arch" type="xml">
  24. <field name="date_create" position="after">
  25. <field name="date_start"/>
  26. <field name="date_done"/>
  27. <field name="duration" widget="duration" options="{'unit': 'minute', 'round': 'minute'}"/>
  28. </field>
  29. </field>
  30. </record>
  31. <record id="view_survey_user_input_kanban" model="ir.ui.view">
  32. <field name="name">survey_input_dates survey.user_input kanban</field>
  33. <field name="model">survey.user_input</field>
  34. <field name="inherit_id" ref="survey.view_survey_user_input_kanban"/>
  35. <field name="priority">26</field>
  36. <field name="groups_id" eval="[(6,0,[ref('survey.group_survey_manager')])]"/>
  37. <field name="arch" type="xml">
  38. <field name="date_create" position="after">
  39. <field name="date_start"/>
  40. <field name="date_done"/>
  41. <!-- <field name="duration"/> -->
  42. </field>
  43. </field>
  44. </record>
  45. <record id="survey_user_input_search" model="ir.ui.view">
  46. <field name="name">survey_input_dates survey.user_input search</field>
  47. <field name="model">survey.user_input</field>
  48. <field name="inherit_id" ref="survey.survey_user_input_search"/>
  49. <field name="priority">26</field>
  50. <field name="groups_id" eval="[(6,0,[ref('survey.group_survey_manager')])]"/>
  51. <field name="arch" type="xml">
  52. <filter name="group_by_partner" position="after">
  53. <filter string="Date done" name="by_date_done" domain="[]" context="{'group_by': 'date_done:week'}"/>
  54. </filter>
  55. </field>
  56. </record>
  57. </odoo>