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.

123 lines
5.4 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <data>
  3. <record model="ir.ui.view" id="activity_form_inherit_personal_data">
  4. <field name="name">Privacy Activity Form Personal Data</field>
  5. <field name="model">privacy.activity</field>
  6. <field name="inherit_id" ref="privacy.activity_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//group[@name='subjects']" position="inside">
  9. <field name="subjects_categ_ids" widget="many2many_tags" string="Category" />
  10. <field name="legal_ids" widget="many2many_tags" string="Legal" />
  11. <label for="personal_data_ids" string="Tracked data"/>
  12. <field name="personal_data_ids" nolabel="1"/>
  13. </xpath>
  14. <field name="controller_id" position="after">
  15. <field name="company_id" string="Compagnie" groups="base.group_multi_company" options="{'no_create': True}"/>
  16. </field>
  17. <xpath expr="//group[@name='subjects']" position="after">
  18. <separator name="erase" string="Délai d'éffacement"/>
  19. <group colspan="4">
  20. <group>
  21. <field name="legal_erase"/>
  22. <field name="legal_erase_year"/>
  23. </group>
  24. <group>
  25. <field name="erase_type"/>
  26. <field name="contract_duration"/>
  27. <field name="keep_for_life"/>
  28. </group>
  29. </group>
  30. </xpath>
  31. <xpath expr="//group[@name='basic']" position="before">
  32. <h2><field name="ref" readonly="1"/></h2>
  33. <field name="priority" widget="priority"/>
  34. </xpath>
  35. <xpath expr="//group[@name='basic']" position="after">
  36. <group>
  37. <field name="hr_department_ids" widget="many2many_tags" colspan="4"/>
  38. </group>
  39. <group name="controller_details" colspan="4">
  40. <field name="controller_ids"/>
  41. </group>
  42. <group name="objective_details" colspan="4">
  43. <field name="define_objective" string="Define Objective(s)"/>
  44. <field name="objective_ids" attrs="{&quot;invisible&quot;: [(&quot;define_objective&quot;, &quot;=&quot;, False)]}">
  45. <tree name="objective">
  46. <field name="name"/>
  47. <field name="description"/>
  48. </tree>
  49. </field>
  50. </group>
  51. <group name="medium_storage" colspan="4">
  52. <field name="define_medium" string="Definir support et lieu de stockage"/>
  53. <field name="medium_ids" attrs="{&quot;invisible&quot;: [(&quot;define_medium&quot;, &quot;=&quot;, False)]}" context="{'default_privacy_activity_id': active_id}" >
  54. <tree name="medium" editable="bottom">
  55. <field name="computing_system_id"/>
  56. <field name="name"/>
  57. <field name="privacy_activity_id" invisible="1"/>
  58. </tree>
  59. </field>
  60. </group>
  61. </xpath>
  62. <xpath expr="//group[@name='subjects']" position="after">
  63. <field name="has_sensitive" invisible="1"/>
  64. <group colspan="4" attrs="{&quot;invisible&quot;: [(&quot;has_sensitive&quot;, &quot;=&quot;, False)]}">
  65. <div class="alert alert-warning" role="alert" style="margin-bottom:0px;">
  66. This activity has sensitive data.
  67. </div>
  68. </group>
  69. <group>
  70. <field name="risk_value" attrs="{&quot;invisible&quot;: [(&quot;has_sensitive&quot;, &quot;=&quot;, False)]}"/>
  71. </group>
  72. </xpath>
  73. <xpath expr="//group[@name='processors']" position="after">
  74. <separator name="destinataires" string="Destinataires"/>
  75. <group name="Destinataires">
  76. <field name="recipient_ids" widget="many2many">
  77. <tree string="Recipients">
  78. <field name="name"/>
  79. <field name="email"/>
  80. <field name="phone"/>
  81. <field name="mobile"/>
  82. </tree>
  83. </field>
  84. </group>
  85. <separator name="right" string="Right to the person"/>
  86. <group>
  87. <field name="person_right" nolabel="true"/>
  88. </group>
  89. </xpath>
  90. <!--<xpath expr="//tree[@name='processors']/field[@name='country_id']" position="after">
  91. <field name="internal"/>
  92. </xpath>-->
  93. </field>
  94. </record>
  95. <record model="ir.ui.view" id="activity_tree_inherit_personal_data">
  96. <field name="name">Privacy Activity Tree Personal Data</field>
  97. <field name="model">privacy.activity</field>
  98. <field name="inherit_id" ref="privacy.activity_tree"/>
  99. <field name="arch" type="xml">
  100. <xpath expr="//tree" position="attributes">
  101. <attribute name="decoration-danger">has_sensitive == True</attribute>
  102. </xpath>
  103. <field name="processor_ids" position="replace">
  104. <field name="objective_ids" widget="many2many_tags"/>
  105. <field name="has_sensitive" invisible="1"/>
  106. <field name="risk_value"/>
  107. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  108. </field>
  109. <field name="name" position="before">
  110. <field name="ref"/>
  111. <field name="priority" widget="priority"/>
  112. </field>
  113. </field>
  114. </record>
  115. </data>