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.

113 lines
3.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2018 Tecnativa - Jairo Llopis
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <data>
  5. <record model="ir.ui.view" id="consent_form">
  6. <field name="name">Privacy Consent Form</field>
  7. <field name="model">privacy.consent</field>
  8. <field name="arch" type="xml">
  9. <form>
  10. <header>
  11. <button
  12. type="object"
  13. name="action_manual_ask"
  14. class="oe_highlight"
  15. string="Ask for consent"
  16. />
  17. <field name="state" widget="statusbar"/>
  18. </header>
  19. <sheet>
  20. <div class="oe_button_box" name="button_box">
  21. <button
  22. class="oe_stat_button"
  23. icon="fa-archive"
  24. name="toggle_active"
  25. type="object"
  26. >
  27. <field
  28. name="active"
  29. options='{"terminology": "archive"}'
  30. widget="boolean_button"
  31. />
  32. </button>
  33. </div>
  34. <group>
  35. <field name="partner_id"/>
  36. <field name="activity_id"/>
  37. <field name="accepted"/>
  38. <field name="last_metadata"/>
  39. </group>
  40. </sheet>
  41. <div class="oe_chatter">
  42. <field name="message_follower_ids" widget="mail_followers"/>
  43. <field name="message_ids" widget="mail_thread"/>
  44. </div>
  45. </form>
  46. </field>
  47. </record>
  48. <record model="ir.ui.view" id="consent_tree">
  49. <field name="name">Privacy Consent Tree</field>
  50. <field name="model">privacy.consent</field>
  51. <field name="arch" type="xml">
  52. <tree>
  53. <field name="activity_id"/>
  54. <field name="partner_id"/>
  55. <field name="state"/>
  56. <field name="accepted"/>
  57. </tree>
  58. </field>
  59. </record>
  60. <record model="ir.ui.view" id="consent_search">
  61. <field name="name">Privacy Consent Search</field>
  62. <field name="model">privacy.consent</field>
  63. <field name="arch" type="xml">
  64. <search>
  65. <field name="activity_id"/>
  66. <field name="partner_id"/>
  67. <field name="state"/>
  68. <field name="accepted"/>
  69. <separator/>
  70. <filter
  71. string="Archived"
  72. name="inactive"
  73. domain="[('active', '=', False)]"
  74. />
  75. <separator/>
  76. <group string="Group By" name="groupby">
  77. <filter
  78. name="activity_id_groupby"
  79. string="Activity"
  80. context="{'group_by': 'activity_id'}"
  81. />
  82. <filter
  83. name="state_groupby"
  84. string="State"
  85. context="{'group_by': 'state'}"
  86. />
  87. <filter
  88. name="accepted_groupby"
  89. string="Accepted"
  90. context="{'group_by': 'accepted'}"
  91. />
  92. </group>
  93. </search>
  94. </field>
  95. </record>
  96. <act_window
  97. id="consent_action"
  98. name="Consents"
  99. res_model="privacy.consent"
  100. />
  101. <menuitem
  102. action="consent_action"
  103. id="menu_privacy_consent"
  104. parent="privacy.menu_data_protection_master_data"
  105. />
  106. </data>