Skip to content

Commit

Permalink
[FIX] partner_event: NewId compatibility
Browse files Browse the repository at this point in the history
When the compute is triggered from a NewId the domain will fail when
it's evaluated as expression parser can't deal with it.

TT45858
  • Loading branch information
chienandalu committed Nov 8, 2023
1 parent feb9176 commit 3b34bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partner_event/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _compute_registration_count(self):
self.env["event.registration"]
.search(
[
("attendee_partner_id", "child_of", partner.id),
("attendee_partner_id", "child_of", partner.ids),
("state", "not in", ("cancel", "draft")),
]
)
Expand Down

0 comments on commit 3b34bdb

Please sign in to comment.