Browse Source

[MIG] privacy: Migration to 13.0

@Tecnativa TT25940
pull/55/head
Jairo Llopis 4 years ago
committed by Valtteri Lattu
parent
commit
d7694c7f55
  1. 2
      privacy/__manifest__.py
  2. 15
      privacy/security/data_protection.xml
  3. 1
      privacy/views/data_protection_menu_view.xml
  4. 19
      privacy/views/privacy_activity_view.xml

2
privacy/__manifest__.py

@ -2,7 +2,7 @@
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Data Privacy and Protection",
"version": "12.0.1.1.0",
"version": "13.0.1.0.0",
"category": "Data Protection",
"summary": "Provides data privacy and protection features "
"to comply to regulations, such as GDPR.",

15
privacy/security/data_protection.xml

@ -2,7 +2,7 @@
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<odoo>
<data noupdate="0">
<data>
<record model="ir.module.category" id="module_category_data_protection">
<field name="name">Data Protection</field>
<field name="sequence">30</field>
@ -14,18 +14,9 @@
</record>
<record id="group_data_protection_manager" model="res.groups">
<field name="name">Data Protection Manager</field>
<field
name="implied_ids"
eval="[(4, ref('privacy.group_data_protection_user'))]"
/>
<field name="implied_ids" eval="[(4, ref('group_data_protection_user'))]" />
<field name="category_id" ref="module_category_data_protection" />
<field name="users" eval="[(4, ref('base.user_root'))]" />
</record>
<record id="base.user_root" model="res.users">
<field
name="groups_id"
eval="[(4, ref('group_data_protection_manager'))]"
/>
<field name="users" eval="[(4, ref('base.user_admin'))]" />
</record>
</data>
</odoo>

1
privacy/views/data_protection_menu_view.xml

@ -6,7 +6,6 @@
<field name="name">Partners</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
</record>
<menuitem

19
privacy/views/privacy_activity_view.xml

@ -12,18 +12,13 @@
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button
class="oe_stat_button"
icon="fa-archive"
name="toggle_active"
type="object"
>
<field
name="active"
options='{"terminology": "archive"}'
widget="boolean_button"
/>
</button>
<field name="active" invisible="1" />
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
</div>
<div class="oe_title">
<label for="name" class="oe_edit_only" />

Loading…
Cancel
Save