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

<?xml version="1.0" encoding="utf-8"?>
<data>
<record model="ir.ui.view" id="activity_form_inherit_personal_data">
<field name="name">Privacy Activity Form Personal Data</field>
<field name="model">privacy.activity</field>
<field name="inherit_id" ref="privacy.activity_form"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='subjects']" position="inside">
<field name="subjects_categ_ids" widget="many2many_tags" string="Category" />
<field name="legal_ids" widget="many2many_tags" string="Legal" />
<label for="personal_data_ids" string="Tracked data"/>
<field name="personal_data_ids" nolabel="1"/>
</xpath>
<field name="controller_id" position="after">
<field name="company_id" string="Compagnie" groups="base.group_multi_company" options="{'no_create': True}"/>
</field>
<xpath expr="//group[@name='subjects']" position="after">
<separator name="erase" string="Délai d'éffacement"/>
<group colspan="4">
<group>
<field name="legal_erase"/>
<field name="legal_erase_year"/>
</group>
<group>
<field name="erase_type"/>
<field name="contract_duration"/>
<field name="keep_for_life"/>
</group>
</group>
</xpath>
<xpath expr="//group[@name='basic']" position="before">
<h2><field name="ref" readonly="1"/></h2>
<field name="priority" widget="priority"/>
</xpath>
<xpath expr="//group[@name='basic']" position="after">
<group>
<field name="hr_department_ids" widget="many2many_tags" colspan="4"/>
</group>
<group name="controller_details" colspan="4">
<field name="controller_ids"/>
</group>
<group name="objective_details" colspan="4">
<field name="define_objective" string="Define Objective(s)"/>
<field name="objective_ids" attrs="{&quot;invisible&quot;: [(&quot;define_objective&quot;, &quot;=&quot;, False)]}">
<tree name="objective">
<field name="name"/>
<field name="description"/>
</tree>
</field>
</group>
<group name="medium_storage" colspan="4">
<field name="define_medium" string="Definir support et lieu de stockage"/>
<field name="medium_ids" attrs="{&quot;invisible&quot;: [(&quot;define_medium&quot;, &quot;=&quot;, False)]}" context="{'default_privacy_activity_id': active_id}" >
<tree name="medium" editable="bottom">
<field name="computing_system_id"/>
<field name="name"/>
<field name="privacy_activity_id" invisible="1"/>
</tree>
</field>
</group>
</xpath>
<xpath expr="//group[@name='subjects']" position="after">
<field name="has_sensitive" invisible="1"/>
<group colspan="4" attrs="{&quot;invisible&quot;: [(&quot;has_sensitive&quot;, &quot;=&quot;, False)]}">
<div class="alert alert-warning" role="alert" style="margin-bottom:0px;">
This activity has sensitive data.
</div>
</group>
<group>
<field name="risk_value" attrs="{&quot;invisible&quot;: [(&quot;has_sensitive&quot;, &quot;=&quot;, False)]}"/>
</group>
</xpath>
<xpath expr="//group[@name='processors']" position="after">
<separator name="destinataires" string="Destinataires"/>
<group name="Destinataires">
<field name="recipient_ids" widget="many2many">
<tree string="Recipients">
<field name="name"/>
<field name="email"/>
<field name="phone"/>
<field name="mobile"/>
</tree>
</field>
</group>
<separator name="right" string="Right to the person"/>
<group>
<field name="person_right" nolabel="true"/>
</group>
</xpath>
<!--<xpath expr="//tree[@name='processors']/field[@name='country_id']" position="after">
<field name="internal"/>
</xpath>-->
</field>
</record>
<record model="ir.ui.view" id="activity_tree_inherit_personal_data">
<field name="name">Privacy Activity Tree Personal Data</field>
<field name="model">privacy.activity</field>
<field name="inherit_id" ref="privacy.activity_tree"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="attributes">
<attribute name="decoration-danger">has_sensitive == True</attribute>
</xpath>
<field name="processor_ids" position="replace">
<field name="objective_ids" widget="many2many_tags"/>
<field name="has_sensitive" invisible="1"/>
<field name="risk_value"/>
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
</field>
<field name="name" position="before">
<field name="ref"/>
<field name="priority" widget="priority"/>
</field>
</field>
</record>
</data>