From 9b453b697996d7e650bf8774cc12536da94645f0 Mon Sep 17 00:00:00 2001 From: Valtteri Lattu Date: Tue, 27 Jul 2021 11:33:58 +0300 Subject: [PATCH] [MIG] privacy: Migration to 14.0 --- privacy/__manifest__.py | 4 ++-- privacy/models/privacy_activity.py | 14 +++++++++++--- setup/privacy/odoo/addons/privacy | 1 + setup/privacy/setup.py | 6 ++++++ 4 files changed, 20 insertions(+), 5 deletions(-) create mode 120000 setup/privacy/odoo/addons/privacy create mode 100644 setup/privacy/setup.py diff --git a/privacy/__manifest__.py b/privacy/__manifest__.py index 4b6fd98..166fc06 100644 --- a/privacy/__manifest__.py +++ b/privacy/__manifest__.py @@ -2,12 +2,12 @@ # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html { "name": "Data Privacy and Protection", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "category": "Data Protection", "summary": "Provides data privacy and protection features " "to comply to regulations, such as GDPR.", "author": "Eficent, " "Tecnativa, " "Odoo Community Association (OCA)", - "website": "http://www.github.com/OCA/data-protection", + "website": "https://github.com/OCA/data-protection", "license": "AGPL-3", "data": [ "security/data_protection.xml", diff --git a/privacy/models/privacy_activity.py b/privacy/models/privacy_activity.py index 48496e0..cc1ff25 100644 --- a/privacy/models/privacy_activity.py +++ b/privacy/models/privacy_activity.py @@ -9,8 +9,15 @@ class PrivacyActivity(models.Model): _description = "Data processing activities" _inherit = ["mail.thread", "mail.activity.mixin"] - active = fields.Boolean(default=True, index=True,) - name = fields.Char(index=True, required=True, translate=True,) + active = fields.Boolean( + default=True, + index=True, + ) + name = fields.Char( + index=True, + required=True, + translate=True, + ) description = fields.Html( translate=True, help="How is personal data used here? Why? Etc." ) @@ -29,7 +36,8 @@ class PrivacyActivity(models.Model): help="Whoever processes personal data on behalf of the controller.", ) subject_find = fields.Boolean( - "Define subjects", help="Are affected subjects present in this database?", + "Define subjects", + help="Are affected subjects present in this database?", ) subject_domain = fields.Char( "Subjects filter", diff --git a/setup/privacy/odoo/addons/privacy b/setup/privacy/odoo/addons/privacy new file mode 120000 index 0000000..babb15b --- /dev/null +++ b/setup/privacy/odoo/addons/privacy @@ -0,0 +1 @@ +../../../../privacy \ No newline at end of file diff --git a/setup/privacy/setup.py b/setup/privacy/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/privacy/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)