Skip to content

Commit

Permalink
[FIX] website_event_track: contact_email
Browse files Browse the repository at this point in the history
If we don't set parenthesis in this query condition we'll be getting the
same contact every time.

TT46915
  • Loading branch information
chienandalu committed Jan 4, 2024
1 parent fdde72c commit 9b6155f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9b6155f

Please sign in to comment.