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. 17
      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 # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{ {
"name": "Data Privacy and Protection", "name": "Data Privacy and Protection",
"version": "12.0.1.1.0",
"version": "13.0.1.0.0",
"category": "Data Protection", "category": "Data Protection",
"summary": "Provides data privacy and protection features " "summary": "Provides data privacy and protection features "
"to comply to regulations, such as GDPR.", "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. <!-- Copyright 2018 Eficent Business and IT Consulting Services S.L.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<odoo> <odoo>
<data noupdate="0">
<data>
<record model="ir.module.category" id="module_category_data_protection"> <record model="ir.module.category" id="module_category_data_protection">
<field name="name">Data Protection</field> <field name="name">Data Protection</field>
<field name="sequence">30</field> <field name="sequence">30</field>
@ -14,18 +14,9 @@
</record> </record>
<record id="group_data_protection_manager" model="res.groups"> <record id="group_data_protection_manager" model="res.groups">
<field name="name">Data Protection Manager</field> <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="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> </record>
</data> </data>
</odoo> </odoo>

1
privacy/views/data_protection_menu_view.xml

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

17
privacy/views/privacy_activity_view.xml

@ -12,18 +12,13 @@
</header> </header>
<sheet> <sheet>
<div class="oe_button_box" name="button_box"> <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"
<field name="active" invisible="1" />
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/> />
</button>
</div> </div>
<div class="oe_title"> <div class="oe_title">
<label for="name" class="oe_edit_only" /> <label for="name" class="oe_edit_only" />

Loading…
Cancel
Save