Skip to content

Commit

Permalink
fixup! fixup! fixup! [IMP] mass_mailing_custom_unsubscribe: GDPR comp…
Browse files Browse the repository at this point in the history
…liance (OCA#267)
  • Loading branch information
chienandalu committed May 29, 2018
1 parent 091e714 commit 8259b1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ env:
matrix:
- LINT_CHECK="1"
- TRANSIFEX="1"
- TESTS="1" ODOO_REPO="odoo/odoo" EXCLUDE="mass_mailing_custom_unsubscribe"
- TESTS="1" ODOO_REPO="OCA/OCB" EXCLUDE="mass_mailing_custom_unsubscribe"
- TESTS="1" ODOO_REPO="odoo/odoo"INCLUDE="mass_mailing_custom_unsubscribe"
- TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="mass_mailing_custom_unsubscribe"
- TESTS="1" ODOO_REPO="odoo/odoo"
- TESTS="1" ODOO_REPO="OCA/OCB""

virtualenv:
system_site_packages: true
Expand Down
1 change: 1 addition & 0 deletions mass_mailing_custom_unsubscribe/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def mailing(self, mailing_id, email=None, res_id=None, token="", **post):
default_reason_id=reason_id,
default_details=post.get("details") or False,
)
del request.env
# You could get a DetailsRequiredError here, but only if HTML5
# validation fails, which should not happen in modern browsers
return super(CustomUnsubscribe, self).mailing(
Expand Down
3 changes: 0 additions & 3 deletions mass_mailing_custom_unsubscribe/tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@


class UICase(HttpCase):
_tour_run = "odoo.__DEBUG__.services['web_tour.tour'].run('%s')"
_tour_ready = "odoo.__DEBUG__.services['web_tour.tour'].tours.%s.ready"

def extract_url(self, mail, *args, **kwargs):
url = mail._get_unsubscribe_url(mail, self.email)
self.assertIn("&token=", url)
Expand Down

0 comments on commit 8259b1f

Please sign in to comment.