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.

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