Browse Source

Structure the privacy_base app module

Renamed module to use the privacy_ convention.
Removed report module (to be proposed in own PR).
Changed README to the autogenerated new style.

Fix website URL

rename
pull/43/head
Daniel Reis 7 years ago
committed by Mustafa Kantawala
parent
commit
8f095a42a4
  1. 21
      privacy/README.rst
  2. 1
      privacy/__init__.py
  3. 20
      privacy/__openerp__.py
  4. 2
      privacy/readme/CONTRIBUTORS.rst
  5. 2
      privacy/readme/DESCRIPTION.rst
  6. 2
      privacy/readme/USAGE.rst
  7. 25
      privacy/security/data_protection.xml
  8. BIN
      privacy/static/description/icon.png
  9. 54
      privacy/views/data_protection_menu_view.xml

21
privacy/README.rst

@ -0,0 +1,21 @@
**This file is going to be generated by oca-gen-addon-readme.**
*Manual changes will be overwritten.*
Please provide content in the ``readme`` directory:
* **DESCRIPTION.rst** (required)
* INSTALL.rst (optional)
* CONFIGURE.rst (optional)
* **USAGE.rst** (optional, highly recommended)
* DEVELOP.rst (optional)
* ROADMAP.rst (optional)
* HISTORY.rst (optional, recommended)
* **CONTRIBUTORS.rst** (optional, highly recommended)
* CREDITS.rst (optional)
Content of this README will also be drawn from the addon manifest,
from keys such as name, authors, maintainers, development_status,
and license.
A good, one sentence summary in the manifest is also highly recommended.

1
privacy/__init__.py

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

20
privacy/__openerp__.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Eficent Business and IT Consulting Services S.L.
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
'name': 'Data Privacy and Protection',
'version': '9.0.1.0.0',
'category': 'Data Protection',
'summary': 'Provides data privacy and protection features '
'to comply to regulations, such as GDPR.',
'author': "Eficent, "
"Odoo Community Association (OCA)",
'website': 'http://www.github.com/OCA/data-protection',
'license': 'AGPL-3',
'data': [
'security/data_protection.xml',
'views/data_protection_menu_view.xml',
],
'installable': True,
'application': True,
}

2
privacy/readme/CONTRIBUTORS.rst

@ -0,0 +1,2 @@
* Miquel Raïch <miquel.raich@eficent.com>
* Daniel Reis <dreis.pt@hotmail.com>

2
privacy/readme/DESCRIPTION.rst

@ -0,0 +1,2 @@
This application provides data protection and privacy feature,
to comply with regulations such as GDPR.

2
privacy/readme/USAGE.rst

@ -0,0 +1,2 @@
In the "Data Protection", open the "Settings" menu to find and enable
the main features available.

25
privacy/security/data_protection.xml

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<openerp>
<data noupdate="0">
<record model="ir.module.category" id="module_category_data_protection">
<field name="name">Data Protection</field>
<field name="sequence">30</field>
</record>
<record id="group_data_protection_user" model="res.groups">
<field name="name">Data Protection User</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="category_id" ref="module_category_data_protection"/>
</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="category_id" ref="module_category_data_protection"/>
</record>
</data>
</openerp>

BIN
privacy/static/description/icon.png

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

54
privacy/views/data_protection_menu_view.xml

@ -0,0 +1,54 @@
<?xml version="1.0"?>
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<openerp>
<data>
<record id="action_data_protection_partner_form" model="ir.actions.act_window">
<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">tree,form</field>
<field name="domain">[]</field>
<field name="filter" eval="True"/>
</record>
<menuitem id="parent_menu_data_protection"
name="Data Protection"
groups="group_data_protection_user"
/>
<menuitem id="menu_data_protection_master_data"
name="Master Data"
parent="parent_menu_data_protection"
groups="group_data_protection_user"
sequence="2"
/>
<menuitem id="menu_data_protection_partner"
name="Partners"
parent="menu_data_protection_master_data"
action="action_data_protection_partner_form"
sequence="10"
/>
<menuitem id="menu_data_protection_transaction"
name="Transactions"
parent="parent_menu_data_protection"
groups="group_data_protection_user"
sequence="3"
/>
<menuitem id="menu_data_protection_report"
name="Reports"
parent="parent_menu_data_protection"
groups="group_data_protection_user"
sequence="4"
/>
<menuitem id="menu_data_protection_setting"
name="Settings"
parent="parent_menu_data_protection"
groups="group_data_protection_manager"
sequence="15"
/>
</data>
</openerp>
Loading…
Cancel
Save