Fix order availability with blocked seeat (Z#23178286) (#4734)

This commit is contained in:
Raphael Michel
2025-01-13 12:49:49 +01:00
committed by GitHub
parent 57f5eeff82
commit 62c028d9ac
2 changed files with 44 additions and 1 deletions

View File

@@ -1087,7 +1087,7 @@ class Order(LockModel, LoggedModel):
for i, op in enumerate(positions):
if op.seat:
if not op.seat.is_available(ignore_orderpos=op):
if not op.seat.is_available(ignore_orderpos=op, sales_channel=self.sales_channel.identifier):
raise Quota.QuotaExceededException(error_messages['seat_unavailable'].format(seat=op.seat))
if force:
continue