Browse Source

[MIG] privacy: Migration to 14.0

pull/55/head
Valtteri Lattu 3 years ago
parent
commit
9b453b6979
  1. 4
      privacy/__manifest__.py
  2. 14
      privacy/models/privacy_activity.py
  3. 1
      setup/privacy/odoo/addons/privacy
  4. 6
      setup/privacy/setup.py

4
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",

14
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",

1
setup/privacy/odoo/addons/privacy

@ -0,0 +1 @@
../../../../privacy

6
setup/privacy/setup.py

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading…
Cancel
Save