[FIX] website_sale_aplicoop: corregir error QWeb pickup_slot_ids|length

El operador | en expresiones t-if de QWeb es el OR bitwise de Python,
no un filtro Jinja2. Como 'length' no existe en el contexto QWeb, evaluaba
recordset | None y lanzaba TypeError. Simplificado a solo pickup_slot_ids
(recordset vacío ya es falsy en Python).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
GitHub Copilot 2026-05-20 17:21:57 +02:00
parent b14a6f84ed
commit 91301fc271

View file

@ -123,7 +123,7 @@
</span>
</div>
</t>
<t t-if="order.pickup_slot_ids and order.pickup_slot_ids|length &gt; 0">
<t t-if="order.pickup_slot_ids">
<div class="meta-item">
<span class="meta-label">Pickup slots</span>
<span class="meta-value">
@ -210,7 +210,7 @@
<t t-esc="day_names[int(group_order.cutoff_day) % 7]" /> (<t t-esc="group_order.cutoff_date.strftime('%d/%m/%Y')" />)</span>
</div>
</t>
<t t-if="group_order.pickup_slot_ids and group_order.pickup_slot_ids|length &gt; 0">
<t t-if="group_order.pickup_slot_ids">
<div class="info-item">
<span t-att-class="'info-label'">Store Pickup Slots</span>
<span class="info-value">