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.

105 lines
3.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <data>
  3. <record model="ir.ui.view" id="personal_data_form">
  4. <field name="name">Privacy Personal Data Form</field>
  5. <field name="model">privacy.personal.data</field>
  6. <field name="arch" type="xml">
  7. <form>
  8. <header>
  9. <field name="type" widget="statusbar" options="{'clickable': '0'}"/>
  10. </header>
  11. <sheet>
  12. <div class="oe_button_box" name="button_box">
  13. <button
  14. class="oe_stat_button"
  15. icon="fa-archive"
  16. name="toggle_active"
  17. type="object"
  18. >
  19. <field
  20. name="active"
  21. options='{"terminology": "archive"}'
  22. widget="boolean_button"
  23. />
  24. </button>
  25. </div>
  26. <div class="oe_title">
  27. <label for="name" class="oe_edit_only"/>
  28. <h1><field name="name"/></h1>
  29. </div>
  30. <group name="basic">
  31. <field name="categ_id"/>
  32. </group>
  33. <notebook string="Details" name="advanced">
  34. <page string="Description" name="description">
  35. <group name="Personal Data details">
  36. <field name="description" nolabel="1"/>
  37. </group>
  38. </page>
  39. </notebook>
  40. </sheet>
  41. </form>
  42. </field>
  43. </record>
  44. <record model="ir.ui.view" id="personal_data_tree">
  45. <field name="name">Privacy Personal Data Tree</field>
  46. <field name="model">privacy.personal.data</field>
  47. <field name="arch" type="xml">
  48. <tree>
  49. <field name="name"/>
  50. <field name="categ_id"/>
  51. <field name="type"/>
  52. <field name="description"/>
  53. </tree>
  54. </field>
  55. </record>
  56. <record model="ir.ui.view" id="personal_data_search">
  57. <field name="name">Privacy Personal Data Search</field>
  58. <field name="model">privacy.personal.data</field>
  59. <field name="arch" type="xml">
  60. <search>
  61. <field name="name"/>
  62. <field name="categ_id"/>
  63. <field name="description"/>
  64. <field name="type"/>
  65. <separator/>
  66. <filter
  67. string="Archived"
  68. name="inactive"
  69. domain="[('active', '=', False)]"
  70. />
  71. </search>
  72. </field>
  73. </record>
  74. <record id="personal_data_action" model="ir.actions.act_window">
  75. <field name="name">Personal Data</field>
  76. <field name="res_model">privacy.personal.data</field>
  77. <field name="view_mode">tree,form</field>
  78. <field name="help" type="html">
  79. <p class="oe_view_nocontent_create">
  80. Click to add a personal data details.
  81. </p>
  82. </field>
  83. </record>
  84. <menuitem
  85. name="Personal Data"
  86. groups="privacy.group_data_protection_user"
  87. parent="privacy.menu_data_protection_setting"
  88. id="menu_privacy_personal_data"
  89. sequence="10"
  90. />
  91. <menuitem
  92. name="Personal Data"
  93. sequence="10"
  94. action="personal_data_action"
  95. groups="privacy.group_data_protection_user"
  96. parent="menu_privacy_personal_data"
  97. id="menu_privacy_personal_data_model"
  98. />
  99. </data>