Skip to content

Commit

Permalink
Merge PR #428 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jan 29, 2025
2 parents d7f5be8 + ca91709 commit a58ad00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion partner_event/models/event_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def _update_attendee_partner_id(self, vals):
Event = self.env["event.event"]
# Look for a partner with that email
email = vals.get("email").replace("%", "").replace("_", "\\_")
attendee_partner = Partner.search([("email", "=ilike", email)], limit=1)
attendee_partner = Partner.search(
[("email", "=ilike", email)], limit=1, order="id"
)
event = Event.browse()
if vals.get("event_id"):
event = Event.browse(vals["event_id"])
Expand Down

0 comments on commit a58ad00

Please sign in to comment.