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,