From 9b6155f166717ee78651223f326d79496b67fd96 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 4 Jan 2024 13:20:14 +0100 Subject: [PATCH] [FIX] website_event_track: contact_email If we don't set parenthesis in this query condition we'll be getting the same contact every time. TT46915 --- .../scripts/website_event_track/15.0.1.3/pre-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openupgrade_scripts/scripts/website_event_track/15.0.1.3/pre-migration.py b/openupgrade_scripts/scripts/website_event_track/15.0.1.3/pre-migration.py index 1772d0409f64..b45cec6f7de9 100644 --- a/openupgrade_scripts/scripts/website_event_track/15.0.1.3/pre-migration.py +++ b/openupgrade_scripts/scripts/website_event_track/15.0.1.3/pre-migration.py @@ -33,7 +33,7 @@ def migrate(env, version): SET contact_email = rp.email, contact_phone = rp.phone FROM res_partner rp WHERE rp.id = et.partner_id - AND rp.email IS NOT NULL OR rp.phone IS NOT NULL""", + AND (rp.email IS NOT NULL OR rp.phone IS NOT NULL)""", ) openupgrade.rename_fields( env,