diff --git a/.gitignore b/.gitignore index f7f8a40..84f7b9b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,24 @@ __pycache__/ # C extensions *.so +# Distribution / packaging +.Python +env/ +bin/ +build/ +develop-eggs/ +dist/ +eggs/ +# Project specific +oca.cfg + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] + +# C extensions +*.so + # Distribution / packaging .Python env/ @@ -21,6 +39,7 @@ var/ *.egg-info/ .installed.cfg *.egg +*.eggs # Installer logs pip-log.txt @@ -36,10 +55,23 @@ coverage.xml # Translations *.mo +*.pot # Pycharm .idea +# Eclipse +.settings + +# Visual Studio cache/options directory +.vs/ + +# OSX Files +.DS_Store + +# Django stuff: +*.log + # Mr Developer .mr.developer.cfg .project @@ -55,5 +87,5 @@ docs/_build/ *~ *.swp -# OSX Files -*.DS_Store +# OCA rules +!static/lib/ diff --git a/.travis.yml b/.travis.yml index c2655a3..c46d323 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,22 +3,62 @@ sudo: false cache: pip python: + # For branches <= 10.0, put `- "2.7.13"` - "3.5" addons: + # By default postgresql-9.1 is installed but there is issue related: + # https://github.com/OCA/maintainer-quality-tools/issues/432#issuecomment-281580935 + # Better use higher PostgreSQL version postgresql: "9.5" apt: +# sources: +# Search your sources alias here: +# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json packages: - expect-dev # provides unbuffer utility +# Search your packages here: +# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise +# For wkhtmltopdf, see the env section below + +# Sometimes complicated website repos need Compass & SaSS: +#before_install: +# - rvm install ruby --latest +# - gem install bootstrap-sass +# - gem install compass --pre env: global: - - VERSION="11.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" + - VERSION="11.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0" + # Set this variable to some version existing as linux-generic build on + # https://github.com/wkhtmltopdf/wkhtmltopdf/releases + # if you need to install wkhtmltopdf + # - WKHTMLTOPDF_VERSION="0.12.4" + # Set the above to install a `wkhtmltopdf` version that is not the one provided + # by the `pov-wkhtmltopdf` repo. + - PHANTOMJS_VERSION="latest" + # The above line controls the PhantomJS version that is used for JS testing. + # It is not necessary to include this value unless you are altering the default. + # Use `OS` to skip the PhantomJS upgrade & use the system version instead. + - WEBSITE_REPO="1" + # Use the above line to install dependencies that are required for website repos: + # * SASS & Bootstrap-SASS + # * Compass matrix: - LINT_CHECK="1" - - TESTS="1" ODOO_REPO="odoo/odoo" - - TESTS="1" ODOO_REPO="OCA/OCB" MAKEPOT="1" +# use this to install a standalone database to export .pot files +# - MAKEPOT="1" +# add MAKEPOT="1" to a TEST line to export .pot files from +# the test database after test success + - TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1" + - TESTS="1" ODOO_REPO="OCA/OCB" +# either use the two lines above or the two below. Don't change the default if +# it's not necessary (it is only necessary if modules in your repository can't +# be installed in the same database. And you get a huge speed penalty in your +# tests) +# - TESTS="1.0" ODOO_REPO="odoo/odoo" UNIT_TEST="1" +# - TESTS="1.0" ODOO_REPO="OCA/OCB" UNIT_TEST="1" install: - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools diff --git a/oca_dependencies.txt b/oca_dependencies.txt index ac0117d..480d897 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -1,15 +1,4 @@ # List the OCA project dependencies, one per line # Add a repository url and branch if you need a forked version # -# Examples -# ======== -# -# To depend on the standard version of sale-workflow, use: -# sale-workflow -# -# To explicitely give the URL of a fork, and still use the version specified in -# .travis.yml, use: -# sale-workflow https://github.com/OCA/sale-workflow -# -# To provide both the URL and a branch, use: -# sale-workflow https://github.com/OCA/sale-workflow branchname +reporting-engine 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/privacy/__init__.py b/privacy/__init__.py new file mode 100644 index 0000000..b7db254 --- /dev/null +++ b/privacy/__init__.py @@ -0,0 +1 @@ +# Empty diff --git a/privacy/__manifest__.py b/privacy/__manifest__.py new file mode 100644 index 0000000..a28051f --- /dev/null +++ b/privacy/__manifest__.py @@ -0,0 +1,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 Privacy and Protection', + 'version': '11.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, +} 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..3c336a4 --- /dev/null +++ b/privacy/readme/USAGE.rst @@ -0,0 +1,3 @@ + #. Go to "Data Protection" Application + #. Go to Configuration > "Settings" menu + #. Enable the main features available. diff --git a/privacy/security/data_protection.xml b/privacy/security/data_protection.xml new file mode 100644 index 0000000..41fffe7 --- /dev/null +++ b/privacy/security/data_protection.xml @@ -0,0 +1,25 @@ + + + + + + + Data Protection + 30 + + + + Data Protection User + + + + + + Data Protection Manager + + + + + + diff --git a/privacy/static/description/icon.png b/privacy/static/description/icon.png new file mode 100644 index 0000000..f36112b Binary files /dev/null and b/privacy/static/description/icon.png differ diff --git a/privacy/static/description/icon.svg b/privacy/static/description/icon.svg new file mode 100644 index 0000000..90af7f3 --- /dev/null +++ b/privacy/static/description/icon.svg @@ -0,0 +1,115 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + diff --git a/privacy/views/data_protection_menu_view.xml b/privacy/views/data_protection_menu_view.xml new file mode 100644 index 0000000..f4db022 --- /dev/null +++ b/privacy/views/data_protection_menu_view.xml @@ -0,0 +1,65 @@ + + + + + + + Partners + ir.actions.act_window + res.partner + form + tree,form + [] + + + + + + + + + + + + Data Protection Settings + ir.actions.act_window + res.config.settings + form + inline + {'module': 'data_protection'} + + + + +