From 6d5d5d494ce784845f4417f7b5d2d975a858389d Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Wed, 11 Mar 2020 16:00:08 +0500 Subject: [PATCH] :shield: avoid adding partners without emails to subscription otherwise it shows "Please complete information" popup which is not supposed to be raised in the test tour --- mail_private/tests/test_js.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail_private/tests/test_js.py b/mail_private/tests/test_js.py index 1bee5dc..d170c5e 100644 --- a/mail_private/tests/test_js.py +++ b/mail_private/tests/test_js.py @@ -22,7 +22,9 @@ class TestUi(odoo.tests.HttpCase): env = Environment(self.registry.test_cr, self.uid, {}) partners = env["res.partner"].search([]) - new_follower = env["res.partner"].search([("name", "ilike", "Ja")]) + new_follower = env["res.partner"].search( + [("name", "ilike", "Ja"), ("email", "!=", False)] + ) for partner in partners: partner.message_subscribe(new_follower.ids, [])