diff --git a/.travis.yml b/.travis.yml index ff1dff1..d7d7966 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ cache: - $HOME/.cache/pip python: - - "2.7.13" + - "2.7" addons: apt: diff --git a/data_protection_base/README.rst b/data_protection_base/README.rst deleted file mode 100644 index 3a61892..0000000 --- a/data_protection_base/README.rst +++ /dev/null @@ -1,52 +0,0 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - -==================== -Data Protection Base -==================== - -This module provides security and menus for data protection modules. - - -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/263/9.0 - -Bug Tracker -=========== - -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smash it by providing detailed and welcomed feedback. - -Credits -======= - -Images ------- - -* Odoo Community Association: `Icon `_. - -Contributors ------------- - -* Miquel Raïch - -Do not contact contributors directly about support or help with technical issues. - -Maintainer ----------- - -.. image:: https://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: https://odoo-community.org - -This module is maintained by the OCA. - -OCA, or the Odoo Community Association, is a nonprofit organization whose -mission is to support the collaborative development of Odoo features and -promote its widespread use. - -To contribute to this module, please visit https://odoo-community.org. diff --git a/gdpr_base/README.rst b/gdpr_base/README.rst deleted file mode 100644 index df6920d..0000000 --- a/gdpr_base/README.rst +++ /dev/null @@ -1,52 +0,0 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - -========= -GDPR Base -========= - -This module provides a shared base for all GDPR modules. - - -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/263/9.0 - -Bug Tracker -=========== - -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smash it by providing detailed and welcomed feedback. - -Credits -======= - -Images ------- - -* Odoo Community Association: `Icon `_. - -Contributors ------------- - -* Miquel Raïch - -Do not contact contributors directly about support or help with technical issues. - -Maintainer ----------- - -.. image:: https://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: https://odoo-community.org - -This module is maintained by the OCA. - -OCA, or the Odoo Community Association, is a nonprofit organization whose -mission is to support the collaborative development of Odoo features and -promote its widespread use. - -To contribute to this module, please visit https://odoo-community.org. diff --git a/gdpr_base/__init__.py b/gdpr_base/__init__.py deleted file mode 100644 index 40a96af..0000000 --- a/gdpr_base/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# -*- coding: utf-8 -*- diff --git a/gdpr_base/__openerp__.py b/gdpr_base/__openerp__.py deleted file mode 100644 index 23cfff0..0000000 --- a/gdpr_base/__openerp__.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- 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': 'GDPR Base', - 'version': '9.0.1.0.0', - 'category': 'GDPR', - 'summary': 'Provides a shared base for all GDPR modules.', - 'author': "Eficent, " - "Odoo Community Association (OCA)", - 'website': 'http://www.github.com/Eficent/gdpr,', - 'license': 'AGPL-3', - 'depends': ['data_protection_base'], - 'data': [ - 'views/gdpr_menu_view.xml', - ], - 'installable': True, -} diff --git a/gdpr_base/static/description/icon.png b/gdpr_base/static/description/icon.png deleted file mode 100644 index 3a0328b..0000000 Binary files a/gdpr_base/static/description/icon.png and /dev/null differ diff --git a/gdpr_base/views/gdpr_menu_view.xml b/gdpr_base/views/gdpr_menu_view.xml deleted file mode 100644 index 5d53168..0000000 --- a/gdpr_base/views/gdpr_menu_view.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - diff --git a/gdpr_partner_report/README.rst b/gdpr_partner_report/README.rst deleted file mode 100644 index 1d417da..0000000 --- a/gdpr_partner_report/README.rst +++ /dev/null @@ -1,65 +0,0 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - -=================== -GDPR Partner Report -=================== - -This module helps a company to identify all the transactions that a specific -partner is involved in, with the possibility to export the associated data. - - -Usage -===== - -To use this module, you need to: - -#. Go to menu of ``Data Protection > Reports > GDPR > Partner Report`` - -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/263/9.0 - -Known issues / Roadmap -====================== - -* This module works only if https://github.com/odoo/odoo/pull/24964 is merged. - -Bug Tracker -=========== - -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smash it by providing detailed and welcomed feedback. - -Credits -======= - -Images ------- - -* Odoo Community Association: `Icon `_. - -Contributors ------------- - -* Miquel Raïch - -Do not contact contributors directly about support or help with technical issues. - -Maintainer ----------- - -.. image:: https://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: https://odoo-community.org - -This module is maintained by the OCA. - -OCA, or the Odoo Community Association, is a nonprofit organization whose -mission is to support the collaborative development of Odoo features and -promote its widespread use. - -To contribute to this module, please visit https://odoo-community.org. diff --git a/gdpr_partner_report/__init__.py b/gdpr_partner_report/__init__.py deleted file mode 100644 index cbe4ef0..0000000 --- a/gdpr_partner_report/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# -*- coding: utf-8 -*- -from . import report -from . import wizard diff --git a/gdpr_partner_report/__openerp__.py b/gdpr_partner_report/__openerp__.py deleted file mode 100644 index 993290f..0000000 --- a/gdpr_partner_report/__openerp__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- 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': 'GDPR Partner Report', - 'version': '9.0.1.0.0', - 'category': 'GDPR', - 'summary': 'Show the transactions that a specific partner is involved in.', - 'author': "Eficent, " - "Odoo Community Association (OCA)", - 'website': 'http://www.github.com/Eficent/gdpr,', - 'license': 'AGPL-3', - 'depends': ['gdpr_base', 'report_xlsx'], - 'data': [ - 'wizard/gdpr_report_partner_wizard.xml', - 'views/gdpr_report.xml', - 'views/gdpr_menu_view.xml', - 'views/report_partner.xml', - ], - 'installable': True, -} diff --git a/gdpr_partner_report/report/__init__.py b/gdpr_partner_report/report/__init__.py deleted file mode 100644 index 96b783c..0000000 --- a/gdpr_partner_report/report/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# -*- coding: utf-8 -*- -from . import gdpr_partner -from . import gdpr_partner_xlsx diff --git a/gdpr_partner_report/report/gdpr_partner.py b/gdpr_partner_report/report/gdpr_partner.py deleted file mode 100644 index f944656..0000000 --- a/gdpr_partner_report/report/gdpr_partner.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- 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 -from openerp import api, fields, models - - -class ReportPartner(models.AbstractModel): - _name = 'report.gdpr.report_partner' - - @api.multi - def render_html(self, data): - docs = self.env['gdpr.partner.report'].browse( - self.env.context.get('active_ids', [])) - partner = data['form'].get('partner_id', False) - partner = self.env['res.partner'].browse(partner[0]) - docargs = { - 'doc_ids': self.ids, - 'doc_model': 'gdpr.partner.report', - 'data': data['form'], - 'docs': docs, - 'date': fields.date.today(), - 'tables': data['tables'], - 'partner': partner, - } - return self.env['report'].render( - 'gdpr_partner_report.report_partner', values=docargs) diff --git a/gdpr_partner_report/report/gdpr_partner_xlsx.py b/gdpr_partner_report/report/gdpr_partner_xlsx.py deleted file mode 100644 index 851165c..0000000 --- a/gdpr_partner_report/report/gdpr_partner_xlsx.py +++ /dev/null @@ -1,95 +0,0 @@ -# -*- 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 - -import logging -from openerp.report import report_sxw -from openerp.tools.translate import _ - -_logger = logging.getLogger(__name__) - -try: - from openerp.addons.report_xlsx.report.report_xlsx import ReportXlsx -except ImportError: - _logger.debug("report_xlsx not installed, Excel export non functional") - - class ReportXlsx(object): - def __init__(self, *args, **kwargs): - pass - - -class ReportPartnerXlsx(ReportXlsx): - - def _search_longest_row(self, tables): - res = 0 - for table in tables: - for model in tables[table]: - if len(tables[table][model]) > 0: - if len(tables[table][model][0]) > res: - res = len(tables[table][model][0]) - return res - - def generate_xlsx_report(self, workbook, data, objects): - partner = data['form'].get('partner_id', False) - partner = self.env['res.partner'].browse(partner[0]) - workbook.set_properties({ - 'comments': 'Created with Python and XlsxWriter from Odoo 9.0'}) - sheet = workbook.add_worksheet(_('Partner Data')) - sheet.set_landscape() - sheet.fit_to_pages(1, 0) - sheet.set_zoom(75) - sheet.set_column(0, self._search_longest_row(data['tables']), 25) - title_style = workbook.add_format( - {'bold': True, 'bg_color': '#FFFFCC', 'border': 2}) - sheet.set_row(0, None, None, {'collapsed': 1}) - sheet.write_row(1, 0, ["Partner: " + partner.display_name], - title_style) - i = 3 - first_row = i+2 - for table in sorted(data['tables'].keys()): - for model in sorted(data['tables'][table].keys()): - rows = len(data['tables'][table][model]) - if rows: - style = workbook.add_format() - style.set_bold(True) - style.set_border(2) - sheet.write_row(i, 0, [model], style) - sheet.write_row(i, 1, [table], style) - i += 1 - j = 0 - for column in data['tables'][table][model][0]: - style = workbook.add_format() - style.set_bold(True) - if j == 0: - style.set_left(1) - if j == len(data['tables'][table][model][0]) - 1: - style.set_right(1) - style.set_top(1) - style.set_bottom(1) - sheet.write_row(i, j, [column], style) - j += 1 - for row in data['tables'][table][model]: - i += 1 - j = 0 - for column in row: - style = workbook.add_format() - if j == 0: - style.set_left(1) - if j == len(row) - 1: - style.set_right(1) - if i == rows + first_row - 1: - style.set_bottom(1) - if row[column]: - sheet.write_row(i, j, [row[column]], style) - else: - sheet.write_row(i, j, [''], style) - j += 1 - i += 2 - first_row = i+2 - - -ReportPartnerXlsx( - 'report.gdpr.report_partner_xlsx', - 'gdpr.partner.report', - parser=report_sxw.rml_parse -) diff --git a/gdpr_partner_report/static/description/icon.png b/gdpr_partner_report/static/description/icon.png deleted file mode 100644 index 3a0328b..0000000 Binary files a/gdpr_partner_report/static/description/icon.png and /dev/null differ diff --git a/gdpr_partner_report/views/gdpr_menu_view.xml b/gdpr_partner_report/views/gdpr_menu_view.xml deleted file mode 100644 index b311518..0000000 --- a/gdpr_partner_report/views/gdpr_menu_view.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - diff --git a/gdpr_partner_report/views/gdpr_report.xml b/gdpr_partner_report/views/gdpr_report.xml deleted file mode 100644 index 77a00b4..0000000 --- a/gdpr_partner_report/views/gdpr_report.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - GDPR Partner Data to Excel - gdpr.partner.report - ir.actions.report.xml - gdpr.report_partner_xlsx - xlsx - - - - \ No newline at end of file diff --git a/gdpr_partner_report/views/report_partner.xml b/gdpr_partner_report/views/report_partner.xml deleted file mode 100644 index a92600a..0000000 --- a/gdpr_partner_report/views/report_partner.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/gdpr_partner_report/wizard/__init__.py b/gdpr_partner_report/wizard/__init__.py deleted file mode 100644 index 850d974..0000000 --- a/gdpr_partner_report/wizard/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import gdpr_report_partner diff --git a/gdpr_partner_report/wizard/gdpr_report_partner.py b/gdpr_partner_report/wizard/gdpr_report_partner.py deleted file mode 100644 index 88b6e2d..0000000 --- a/gdpr_partner_report/wizard/gdpr_report_partner.py +++ /dev/null @@ -1,256 +0,0 @@ -# -*- 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 -from openerp import api, fields, models, _ -from openerp.osv import fields as old_fields -from openerp.exceptions import UserError - - -class GDPRPartnerReport(models.TransientModel): - _name = "gdpr.partner.report" - _description = "GDPR Partner Report" - - company_id = fields.Many2one( - comodel_name='res.company', - string='Company', - required=True, - default=lambda self: self.env.user.company_id, - ) - partner_id = fields.Many2one( - comodel_name='res.partner', - string='Partner', - required=True, - ) - table_ids = fields.Many2many( - comodel_name='gdpr.partner.data', - string='Models with related partner data', - ) - - @api.multi - @api.onchange('partner_id') - def _onchange_table_ids(self): - self.ensure_one() - for report in self: - if report.partner_id: - data = self._get_tables_from_partner(self.partner_id) - names = self._get_table_names(data) - tables = self.env['gdpr.partner.data'] - for name in sorted(names): - vals = report._get_default_table( - name=name, - data=[t for t in data if t[0] == name and not t[5]], - ) - if vals: - tables |= self.env['gdpr.partner.data'].create(vals) - report.table_ids = tables - else: - report.table_ids = self.env['gdpr.partner.data'] - return { - 'domain': { - 'table_ids': [ - ('id', 'in', report.table_ids.ids)], - }, - } - - @api.onchange('company_id') - def _onchange_company_id(self): - if self.company_id: - return { - 'domain': { - 'partner_id': [ - ('company_id', 'in', [self.company_id.id, False])], - }, - } - else: - return { - 'domain': { - 'partner_id': [('company_id', '=', False)], - }, - } - - @api.multi - def button_export_pdf(self): - self.ensure_one() - return self.check_report() - - @api.multi - def button_export_xlsx(self): - self.ensure_one() - return self.check_report(xlsx_report=True) - - def _build_contexts(self, data): - result = {} - result['partner_id'] = data['form']['partner_id'][0] or False - result['company_id'] = data['form']['company_id'][0] or False - result['table_ids'] = 'table_ids' in data['form'] and \ - data['form']['table_ids'] or False - return result - - def _clean_data(self, model, rows): - cleaned_rows = [] - for i, row in enumerate(rows): - cleaned_rows.append({}) - for key, value in row.items(): - label = self.env[model]._fields[key].string or key - if 'many2' in self.env[model]._fields[key].type: - comodel = self.env[model]._fields[key].comodel_name - if value: - record = self.env[comodel].browse(value) - cleaned_rows[i][label] = str(record.display_name) - else: - cleaned_rows[i][label] = rows[i][key] - else: - cleaned_rows[i][label] = rows[i][key] - return cleaned_rows - - @api.multi - def check_report(self, xlsx_report=False): - self.ensure_one() - data = {} - data['ids'] = self.env.context.get('active_ids', []) - data['model'] = self.env.context.get('active_model', 'ir.ui.menu') - data['form'] = self.read(['partner_id', 'company_id', 'table_ids'])[0] - used_context = self._build_contexts(data) - data['form']['used_context'] = dict( - used_context, lang=self.env.context.get('lang', 'en_US')) - return self._print_report(data=data, xlsx_report=xlsx_report) - - @api.multi - def compute_data_for_report(self, data): - if not data.get('form'): - raise UserError( - _("Form content is missing, this report cannot be printed.")) - partner = data['form'].get('partner_id', False) - if not partner: - raise UserError( - _("No provided partner.")) - partner = self.env['res.partner'].browse(partner[0]) - tables = data['form'].get('table_ids', False) - if tables: - tables = self.env['gdpr.partner.data'].browse(tables) - tables = self._get_rows_from_tables(tables, partner) - data.update({'tables': tables, }) - return data - - def _exclude_column(self, model, column): - - # To remove in v10: - # (non-stored function fields should have _fnct_search) - column_info = self.env[model]._columns.get(column) - next_model = self.env[model] - while not column_info and column in next_model._inherit_fields: - next_model = self.env[next_model._inherit_fields[column][0]] - column_info = next_model._columns.get(column) - if isinstance(column_info, old_fields.function) \ - and not column_info.store and not column_info._fnct_search: - return True - - # https://github.com/odoo/odoo/issues/24927 - if model in ('mail.compose.message', 'survey.mail.compose.message'): - if column in ('needaction_partner_ids', 'starred_partner_ids'): - return True - return False - - def _get_default_table(self, name, data): - if data: - data_type = data[0][4] - res = self.env[data[0][1]] - for t in data: - res |= self.env[t[1]].browse(t[3]) - if res: - values = { - 'name': name, - 'model_id': self.env['ir.model'].search( - [('model', '=', res._name)]).id, - 'count_rows': len(res.ids), - 'type': data_type, - } - return values - return {} - - def _get_model_from_table(self, table, partner): - new_tables = {} - for model in table.model_id: - rows = self._get_rows_from_model(model, partner) - new_tables[str(model.display_name)] = rows - return new_tables - - def _get_rows_from_model(self, model, partner): - cr = self.env.cr - lines = self.env[model.model] - columns = [k for k, v in self.env[model.model]._fields.items() - if v.comodel_name == 'res.partner' and - not self._exclude_column(model.model, k)] - for column in columns: - lines |= self.env[model.model].search([(column, '=', partner.id)]) - line_ids = ', '.join([str(i) for i in lines.ids]) - query = "SELECT * FROM %s WHERE id IN (%s)" % ( - model.model.replace('.', '_'), line_ids) - cr.execute(query) - rows = cr.dictfetchall() - rows = self._clean_data(model.model, rows) - return rows - - def _get_rows_from_tables(self, tables, partner): - new_tables = {} - for table in tables: - data_table = self._get_model_from_table(table, partner) - new_tables[str(table.name)] = data_table - return new_tables - - def _get_table_names(self, data): - names = [] - for t in data: - if t[3] and not t[5] and t[0] not in names: - names.append(t[0]) - return names - - def _get_tables_from_partner(self, partner): - tables = [t[0] for t in [ - [[self.env[m]._table, m, k, self.env[m].sudo().search( - [(k, '=', partner.id)]).ids, v.type, self.env[m]._transient] - for k, v in self.env[m]._fields.items() - if v.comodel_name == 'res.partner' and self.env[m]._auto and - not self._exclude_column(m, k)] - for m in [x for x in self.env.registry.keys()]] if t] - for i, t in enumerate(tables): - if t[4] == 'many2many': - if t[3]: - relation = self.env[t[1]]._fields[t[2]].relation - if relation: - tables[i][0] = relation - return tables - - def _print_report(self, data, xlsx_report=False): - records = self.env[data['model']].browse(data.get('ids', [])) - processed_data = self.compute_data_for_report(data) - if xlsx_report: - kkk = self.env['report'].with_context(landscape=True).get_action( - records=records, report_name='gdpr.report_partner_xlsx', - data=processed_data) - return kkk - else: - return self.env['report'].with_context(landscape=True).get_action( - records=records, report_name='gdpr.report_partner', - data=processed_data) - - -class GDPRPartnerData(models.TransientModel): - _name = "gdpr.partner.data" - _description = "GDPR Partner Data" - - name = fields.Char( - string='Database Table', - ) - model_id = fields.Many2one( - comodel_name='ir.model', - ondelete='cascade', - string='Models', - ) - type = fields.Char( - string="Type", - ) - count_rows = fields.Integer( - default=0, - string='Number of lines', - ) diff --git a/gdpr_partner_report/wizard/gdpr_report_partner_wizard.xml b/gdpr_partner_report/wizard/gdpr_report_partner_wizard.xml deleted file mode 100644 index a0bf881..0000000 --- a/gdpr_partner_report/wizard/gdpr_report_partner_wizard.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - Partner Report - gdpr.partner.report - -
- - - Select a company
- -
-
- - - Select a partner
- -
-
- - - - - - - - -
-
-
-
-
- - - Partner Report - gdpr.partner.report - ir.actions.act_window - form - form - - {} - new - - -
-
diff --git a/privacy/README.rst b/privacy/README.rst new file mode 100644 index 0000000..21cd785 --- /dev/null +++ b/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. diff --git a/data_protection_base/__init__.py b/privacy/__init__.py similarity index 100% rename from data_protection_base/__init__.py rename to privacy/__init__.py diff --git a/data_protection_base/__openerp__.py b/privacy/__openerp__.py similarity index 59% rename from data_protection_base/__openerp__.py rename to privacy/__openerp__.py index a104851..d4268c6 100644 --- a/data_protection_base/__openerp__.py +++ b/privacy/__openerp__.py @@ -2,17 +2,19 @@ # 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 Protection Base', + 'name': 'Data Privacy and Protection', 'version': '9.0.1.0.0', - 'category': '??', - 'summary': 'Provides security and menus for data protection modules.', + '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/Eficent/gdpr,', + '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, } diff --git a/privacy/readme/CONTRIBUTORS.rst b/privacy/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..4c0548e --- /dev/null +++ b/privacy/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Miquel Raïch +* Daniel Reis diff --git a/privacy/readme/DESCRIPTION.rst b/privacy/readme/DESCRIPTION.rst new file mode 100644 index 0000000..1d8ddb3 --- /dev/null +++ b/privacy/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This application provides data protection and privacy feature, +to comply with regulations such as GDPR. diff --git a/privacy/readme/USAGE.rst b/privacy/readme/USAGE.rst new file mode 100644 index 0000000..9da9121 --- /dev/null +++ b/privacy/readme/USAGE.rst @@ -0,0 +1,2 @@ +In the "Data Protection", open the "Settings" menu to find and enable +the main features available. diff --git a/data_protection_base/security/data_protection.xml b/privacy/security/data_protection.xml similarity index 89% rename from data_protection_base/security/data_protection.xml rename to privacy/security/data_protection.xml index 4fe89cc..cab31f5 100644 --- a/data_protection_base/security/data_protection.xml +++ b/privacy/security/data_protection.xml @@ -17,7 +17,7 @@ Data Protection Manager - + diff --git a/data_protection_base/static/description/icon.png b/privacy/static/description/icon.png similarity index 100% rename from data_protection_base/static/description/icon.png rename to privacy/static/description/icon.png diff --git a/data_protection_base/views/data_protection_menu_view.xml b/privacy/views/data_protection_menu_view.xml similarity index 83% rename from data_protection_base/views/data_protection_menu_view.xml rename to privacy/views/data_protection_menu_view.xml index b92aae4..39bfc99 100644 --- a/data_protection_base/views/data_protection_menu_view.xml +++ b/privacy/views/data_protection_menu_view.xml @@ -16,13 +16,13 @@