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.

97 lines
3.7 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. <field name="active" invisible="1" />
  22. <widget
  23. name="web_ribbon"
  24. title="Archived"
  25. bg_color="bg-danger"
  26. attrs="{'invisible': [('active', '=', True)]}"
  27. />
  28. </div>
  29. <group>
  30. <field name="partner_id" />
  31. <field name="activity_id" />
  32. <field name="accepted" />
  33. <field name="last_metadata" />
  34. </group>
  35. </sheet>
  36. <div class="oe_chatter">
  37. <field name="message_follower_ids" widget="mail_followers" />
  38. <field name="message_ids" widget="mail_thread" />
  39. </div>
  40. </form>
  41. </field>
  42. </record>
  43. <record model="ir.ui.view" id="consent_tree">
  44. <field name="name">Privacy Consent Tree</field>
  45. <field name="model">privacy.consent</field>
  46. <field name="arch" type="xml">
  47. <tree>
  48. <field name="activity_id" />
  49. <field name="partner_id" />
  50. <field name="state" />
  51. <field name="accepted" />
  52. </tree>
  53. </field>
  54. </record>
  55. <record model="ir.ui.view" id="consent_search">
  56. <field name="name">Privacy Consent Search</field>
  57. <field name="model">privacy.consent</field>
  58. <field name="arch" type="xml">
  59. <search>
  60. <field name="activity_id" />
  61. <field name="partner_id" />
  62. <field name="state" />
  63. <field name="accepted" />
  64. <separator />
  65. <filter
  66. string="Archived"
  67. name="inactive"
  68. domain="[('active', '=', False)]"
  69. />
  70. <separator />
  71. <group string="Group By" name="groupby">
  72. <filter
  73. name="activity_id_groupby"
  74. string="Activity"
  75. context="{'group_by': 'activity_id'}"
  76. />
  77. <filter
  78. name="state_groupby"
  79. string="State"
  80. context="{'group_by': 'state'}"
  81. />
  82. <filter
  83. name="accepted_groupby"
  84. string="Accepted"
  85. context="{'group_by': 'accepted'}"
  86. />
  87. </group>
  88. </search>
  89. </field>
  90. </record>
  91. <act_window id="consent_action" name="Consents" res_model="privacy.consent" />
  92. <menuitem
  93. action="consent_action"
  94. id="menu_privacy_consent"
  95. parent="privacy.menu_data_protection_master_data"
  96. />
  97. </data>