[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:
parent
b14a6f84ed
commit
91301fc271
1 changed files with 2 additions and 2 deletions
|
|
@ -123,7 +123,7 @@
|
|||
</span>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="order.pickup_slot_ids and order.pickup_slot_ids|length > 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 > 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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue