diff --git a/privacy_consent/__manifest__.py b/privacy_consent/__manifest__.py
index ee84254..a9d388b 100644
--- a/privacy_consent/__manifest__.py
+++ b/privacy_consent/__manifest__.py
@@ -1,15 +1,14 @@
-# -*- coding: utf-8 -*-
# Copyright 2018 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Privacy - Consent",
"summary": "Allow people to explicitly accept or reject inclusion "
"in some activity, GDPR compliant",
- "version": "10.0.1.0.0",
+ "version": "11.0.1.0.0",
"development_status": "Production/Stable",
"category": "Privacy",
"website": "https://github.com/OCA/management-activity",
- "author": "Tecnativa, Odoo Community Association (OCA)",
+ "author": "Tecnativa, initOS GmbH, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
diff --git a/privacy_consent/controllers/main.py b/privacy_consent/controllers/main.py
index 8f243d0..dddb20b 100644
--- a/privacy_consent/controllers/main.py
+++ b/privacy_consent/controllers/main.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2018 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
diff --git a/privacy_consent/data/ir_actions_server.xml b/privacy_consent/data/ir_actions_server.xml
index 58788e6..4e7bc4d 100644
--- a/privacy_consent/data/ir_actions_server.xml
+++ b/privacy_consent/data/ir_actions_server.xml
@@ -1,5 +1,6 @@
@@ -8,16 +9,8 @@
Update partner's opt out
- object_write
- expression
- record.partner_id
-
-
-
-
-
- equation
- not record.accepted
+ code
+ records.mapped('partner_id').write({'opt_out': not record.accepted})
diff --git a/privacy_consent/data/ir_cron.xml b/privacy_consent/data/ir_cron.xml
index cc4bb38..72acc37 100644
--- a/privacy_consent/data/ir_cron.xml
+++ b/privacy_consent/data/ir_cron.xml
@@ -1,15 +1,17 @@
Request automatic data processing consents
- privacy.activity
- _cron_new_consents
+
+ code
+ model._cron_new_consents()
1
- work_days
+ days
-1
diff --git a/privacy_consent/i18n/es.po b/privacy_consent/i18n/es.po
index d7e0b9c..5c47d5f 100644
--- a/privacy_consent/i18n/es.po
+++ b/privacy_consent/i18n/es.po
@@ -372,6 +372,11 @@ msgstr "Contacto duplicado en esta actividad de tratamiento"
msgid "Email Templates"
msgstr "Plantillas de correo electrónico"
+#. module: privacy_consent
+#: model:ir.model,name:privacy_consent.model_mail_compose_message
+msgid "Email composition wizard"
+msgstr "Asistente de redacción de correo electrónico"
+
#. module: privacy_consent
#: model:ir.model.fields,field_description:privacy_consent.field_privacy_activity_consent_template_id
msgid "Email template"
@@ -658,6 +663,3 @@ msgstr "Ha rechazado dicho tratamiento."
#: model:ir.ui.view,arch_db:privacy_consent.form
msgid "You have accepted such processing."
msgstr "Ha aceptado dicho tratamiento."
-
-#~ msgid "Email composition wizard"
-#~ msgstr "Asistente de redacción de correo electrónico"
diff --git a/privacy_consent/i18n/fr.po b/privacy_consent/i18n/fr.po
index d32c4e6..31c82d9 100644
--- a/privacy_consent/i18n/fr.po
+++ b/privacy_consent/i18n/fr.po
@@ -6,7 +6,6 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-05-13 17:04+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: fr\n"
@@ -283,7 +282,7 @@ msgstr ""
#. module: privacy_consent
#: model:ir.ui.view,arch_db:privacy_consent.activity_form
-msgid "Generate and enqueue missing consent requests"
+msgid "Generate and send missing consent requests"
msgstr ""
#. module: privacy_consent
@@ -488,7 +487,7 @@ msgstr ""
#. module: privacy_consent
#: model:ir.ui.view,arch_db:privacy_consent.activity_form
-msgid "This could enqueue many consent emails, are you sure to proceed?"
+msgid "This could send many consent emails, are you sure to proceed?"
msgstr ""
#. module: privacy_consent
diff --git a/privacy_consent/i18n/privacy_consent.pot b/privacy_consent/i18n/privacy_consent.pot
index 8e0642f..cf3cd1a 100644
--- a/privacy_consent/i18n/privacy_consent.pot
+++ b/privacy_consent/i18n/privacy_consent.pot
@@ -6,6 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-05-13 17:04+0000\n"
+"PO-Revision-Date: 2019-05-13 17:04+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -237,6 +239,11 @@ msgstr ""
msgid "Email Templates"
msgstr ""
+#. module: privacy_consent
+#: model:ir.model,name:privacy_consent.model_mail_compose_message
+msgid "Email composition wizard"
+msgstr ""
+
#. module: privacy_consent
#: model:ir.model.fields,field_description:privacy_consent.field_privacy_activity_consent_template_id
msgid "Email template"
diff --git a/privacy_consent/i18n/pt.po b/privacy_consent/i18n/pt.po
index 5928e40..83bdd04 100644
--- a/privacy_consent/i18n/pt.po
+++ b/privacy_consent/i18n/pt.po
@@ -2,7 +2,6 @@ msgid ""
msgstr ""
"Project-Id-Version: Portuguese (data-protection-10.0)\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-05-13 17:04+0000\n"
"PO-Revision-Date: 2018-12-15 21:58+0000\n"
"Last-Translator: alvarorib \n"
"Language-Team: Portuguese `_:
* Jairo Llopis
+
+* `initOS GmbH `_:
+
+ * Florian Kantelberg
diff --git a/privacy_consent/tests/test_consent.py b/privacy_consent/tests/test_consent.py
index 4c6f11c..8de1e56 100644
--- a/privacy_consent/tests/test_consent.py
+++ b/privacy_consent/tests/test_consent.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2018 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
@@ -204,7 +203,7 @@ class ActivityCase(HttpCase):
self.assertNotIn(reject_url, messages[1].body)
# Visit tokenized accept URL
with self.release_cr():
- result = self.url_open(accept_url).read()
+ result = self.url_open(accept_url).text
self.assertIn("accepted", result)
self.assertIn(reject_url, result)
self.assertIn(self.activity_manual.name, result)
@@ -220,7 +219,7 @@ class ActivityCase(HttpCase):
)
# Visit tokenized reject URL
with self.release_cr():
- result = self.url_open(reject_url).read()
+ result = self.url_open(reject_url).text
self.assertIn("rejected", result)
self.assertIn(accept_url, result)
self.assertIn(self.activity_manual.name, result)