diff --git a/.travis.yml b/.travis.yml index 7be4997210..4eebf95a2c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/mass_mailing_custom_unsubscribe/controllers/main.py b/mass_mailing_custom_unsubscribe/controllers/main.py index d6be2758f7..b652c6d58f 100644 --- a/mass_mailing_custom_unsubscribe/controllers/main.py +++ b/mass_mailing_custom_unsubscribe/controllers/main.py @@ -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( diff --git a/mass_mailing_custom_unsubscribe/tests/test_ui.py b/mass_mailing_custom_unsubscribe/tests/test_ui.py index ee2f18e535..8ddebbbd5c 100644 --- a/mass_mailing_custom_unsubscribe/tests/test_ui.py +++ b/mass_mailing_custom_unsubscribe/tests/test_ui.py @@ -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)