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.

127 lines
4.8 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. <field
  36. name="processor_ids"
  37. widget="many2many_tags"
  38. />
  39. </group>
  40. <group name="subjects">
  41. <field name="subject_find"/>
  42. <field
  43. name="subject_domain"
  44. widget="char_domain"
  45. options='{"model": "res.partner"}'
  46. attrs='{"required": [("subject_find", "=", True)],
  47. "invisible": [("subject_find", "=", False)]}'
  48. />
  49. </group>
  50. </group>
  51. <notebook string="Details" name="advanced">
  52. <page string="Description">
  53. <group>
  54. <field name="description" nolabel="1"/>
  55. </group>
  56. </page>
  57. </notebook>
  58. </sheet>
  59. <div class="oe_chatter">
  60. <field name="message_follower_ids" widget="mail_followers"/>
  61. <field name="message_ids" widget="mail_thread"/>
  62. </div>
  63. </form>
  64. </field>
  65. </record>
  66. <record model="ir.ui.view" id="activity_tree">
  67. <field name="name">Privacy Activity Tree</field>
  68. <field name="model">privacy.activity</field>
  69. <field name="arch" type="xml">
  70. <tree>
  71. <field name="name"/>
  72. <field name="controller_id"/>
  73. <field name="processor_ids"/>
  74. </tree>
  75. </field>
  76. </record>
  77. <record model="ir.ui.view" id="activity_search">
  78. <field name="name">Privacy Activity Search</field>
  79. <field name="model">privacy.activity</field>
  80. <field name="arch" type="xml">
  81. <search>
  82. <field name="name"/>
  83. <field name="controller_id"/>
  84. <field name="processor_ids"/>
  85. <separator/>
  86. <filter
  87. string="Archived"
  88. name="inactive"
  89. domain="[('active', '=', False)]"
  90. />
  91. <separator/>
  92. <group string="Group By" name="groupby">
  93. <filter
  94. name="controller_id_groupby"
  95. string="Controller"
  96. context="{'group_by': 'controller_id'}"
  97. />
  98. </group>
  99. </search>
  100. </field>
  101. </record>
  102. <record id="activity_action" model="ir.actions.act_window">
  103. <field name="name">Activities</field>
  104. <field name="res_model">privacy.activity</field>
  105. <field name="view_mode">tree,form</field>
  106. <field name="help" type="html">
  107. <p class="oe_view_nocontent_create">
  108. Click to add a data processing activity.
  109. </p><p>
  110. Data processing activities define why, how and what you do
  111. with subjects' personal data.
  112. </p>
  113. </field>
  114. </record>
  115. <menuitem
  116. action="activity_action"
  117. groups="group_data_protection_user"
  118. id="menu_privacy_activity"
  119. parent="menu_data_protection_master_data"
  120. />
  121. </data>