Skip to content

Commit

Permalink
Merge PR #106 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 2, 2023
2 parents 85607fe + cfcdd9d commit d3b542b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resource_booking/models/resource_booking.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ def _check_scheduling(self):
if not has_meeting:
return
# Ensure all scheduled bookings have booked some resources
has_rbc = self.filtered("combination_id.resource_ids")
has_rbc = self.with_context(active_test=False).filtered(
"combination_id.resource_ids"
)
missing_rbc = has_meeting - has_rbc
if missing_rbc:
raise ValidationError(
Expand Down

0 comments on commit d3b542b

Please sign in to comment.