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.

142 lines
5.5 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="activity_form">
  6. <field name="name">Privacy Activity Form</field>
  7. <field name="model">privacy.activity</field>
  8. <field name="arch" type="xml">
  9. <form>
  10. <header>
  11. <!-- Placeholder for submodules -->
  12. </header>
  13. <sheet>
  14. <div class="oe_button_box" name="button_box">
  15. <button
  16. class="oe_stat_button"
  17. icon="fa-archive"
  18. name="toggle_active"
  19. type="object"
  20. >
  21. <field
  22. name="active"
  23. options='{"terminology": "archive"}'
  24. widget="boolean_button"
  25. />
  26. </button>
  27. </div>
  28. <div class="oe_title">
  29. <label for="name" class="oe_edit_only"/>
  30. <h1><field name="name"/></h1>
  31. </div>
  32. <group name="basic">
  33. <group name="owners">
  34. <field name="controller_id"/>
  35. </group>
  36. <group name="dates">
  37. <field name="create_date" readonly="1"/>
  38. <field name="write_date" readonly="1"/>
  39. <field name="write_uid" readonly="1"/>
  40. </group>
  41. </group>
  42. <separator name="subjects" string="Subjects details"/>
  43. <group name="subjects">
  44. <field name="subject_find"/>
  45. <field
  46. name="subject_domain"
  47. widget="domain"
  48. options='{"model": "res.partner"}'
  49. attrs='{"required": [("subject_find", "=", True)],
  50. "invisible": [("subject_find", "=", False)]}'
  51. />
  52. </group>
  53. <separator name="processors" string="Processors"/>
  54. <group name="processors">
  55. <field
  56. name="processor_ids"
  57. widget="many2many"
  58. >
  59. <tree string="processors">
  60. <field name="name"/>
  61. <field name="email"/>
  62. <field name="country_id"/>
  63. </tree>
  64. </field>
  65. </group>
  66. <notebook string="Details" name="advanced">
  67. <page string="Description">
  68. <group>
  69. <field name="description" nolabel="1"/>
  70. </group>
  71. </page>
  72. </notebook>
  73. </sheet>
  74. <div class="oe_chatter">
  75. <field name="message_follower_ids" widget="mail_followers"/>
  76. <field name="message_ids" widget="mail_thread"/>
  77. </div>
  78. </form>
  79. </field>
  80. </record>
  81. <record model="ir.ui.view" id="activity_tree">
  82. <field name="name">Privacy Activity Tree</field>
  83. <field name="model">privacy.activity</field>
  84. <field name="arch" type="xml">
  85. <tree>
  86. <field name="name"/>
  87. <field name="controller_id"/>
  88. <field name="processor_ids"/>
  89. </tree>
  90. </field>
  91. </record>
  92. <record model="ir.ui.view" id="activity_search">
  93. <field name="name">Privacy Activity Search</field>
  94. <field name="model">privacy.activity</field>
  95. <field name="arch" type="xml">
  96. <search>
  97. <field name="name"/>
  98. <field name="controller_id"/>
  99. <field name="processor_ids"/>
  100. <separator/>
  101. <filter
  102. string="Archived"
  103. name="inactive"
  104. domain="[('active', '=', False)]"
  105. />
  106. <separator/>
  107. <group string="Group By" name="groupby">
  108. <filter
  109. name="controller_id_groupby"
  110. string="Controller"
  111. context="{'group_by': 'controller_id'}"
  112. />
  113. </group>
  114. </search>
  115. </field>
  116. </record>
  117. <record id="activity_action" model="ir.actions.act_window">
  118. <field name="name">Activities</field>
  119. <field name="res_model">privacy.activity</field>
  120. <field name="view_mode">tree,form</field>
  121. <field name="help" type="html">
  122. <p class="oe_view_nocontent_create">
  123. Click to add a data processing activity.
  124. </p><p>
  125. Data processing activities define why, how and what you do
  126. with subjects' personal data.
  127. </p>
  128. </field>
  129. </record>
  130. <menuitem
  131. action="activity_action"
  132. groups="group_data_protection_user"
  133. id="menu_privacy_activity"
  134. parent="menu_data_protection_master_data"
  135. />
  136. </data>