diff --git a/partner_event/models/res_partner.py b/partner_event/models/res_partner.py index 16cf74e47..73a536295 100644 --- a/partner_event/models/res_partner.py +++ b/partner_event/models/res_partner.py @@ -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")), ] )