exclude products over clic limit from eboutic

This commit is contained in:
imperosol
2026-05-14 12:28:59 +02:00
parent d4a2b7ec33
commit 186498d904
4 changed files with 10 additions and 16 deletions
+5 -3
View File
@@ -118,9 +118,11 @@ class EbouticMainView(LoginRequiredMixin, FormView):
@cached_property
def prices(self) -> list[Price]:
return get_eboutic().get_prices_for(
self.customer,
order_by=["product__product_type__order", "product_id", "amount"],
eboutic = get_eboutic()
return list(
eboutic.get_prices_for(self.customer)
.filter(product__in=eboutic.products.under_clic_limit())
.order_by("product__product_type__order", "product_id", "amount")
)
@cached_property