[IMP] website_sale_aplicoop: mostrar día y horario completo en pickup slots
Antes: si el slot tenía label, solo se mostraba el label (sin día ni hora). Ahora: siempre se muestra día + rango horario (09:00–13:00), con el label entre paréntesis como información adicional opcional. Aplicado en eskaera_order_card_meta (tarjeta compacta) y en la vista detalle de la tienda (group_order.pickup_slot_ids). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
91301fc271
commit
fb1efb0474
1 changed files with 8 additions and 16 deletions
|
|
@ -129,14 +129,10 @@
|
||||||
<span class="meta-value">
|
<span class="meta-value">
|
||||||
<t t-foreach="order.pickup_slot_ids" t-as="slot">
|
<t t-foreach="order.pickup_slot_ids" t-as="slot">
|
||||||
<div class="slot-entry">
|
<div class="slot-entry">
|
||||||
<t t-if="slot.label">
|
|
||||||
<t t-esc="slot.label" />
|
|
||||||
</t>
|
|
||||||
<t t-else="">
|
|
||||||
<t t-esc="day_names[int(slot.weekday) % 7]" />
|
<t t-esc="day_names[int(slot.weekday) % 7]" />
|
||||||
 
|
 
|
||||||
<t t-esc="('%02d:%02d-%02d:%02d' % (int(slot.start_hour or 0), int(((slot.start_hour or 0) % 1) * 60), int(slot.end_hour or 0), int(((slot.end_hour or 0) % 1) * 60)))" />
|
<t t-esc="('%02d:%02d–%02d:%02d' % (int(slot.start_hour or 0), int(((slot.start_hour or 0) % 1) * 60), int(slot.end_hour or 0), int(((slot.end_hour or 0) % 1) * 60)))" />
|
||||||
</t>
|
<t t-if="slot.label"> (<t t-esc="slot.label" />)</t>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -216,14 +212,10 @@
|
||||||
<span class="info-value">
|
<span class="info-value">
|
||||||
<t t-foreach="group_order.pickup_slot_ids" t-as="slot">
|
<t t-foreach="group_order.pickup_slot_ids" t-as="slot">
|
||||||
<div>
|
<div>
|
||||||
<t t-if="slot.label">
|
|
||||||
<t t-esc="slot.label" />
|
|
||||||
</t>
|
|
||||||
<t t-else="">
|
|
||||||
<t t-esc="day_names[int(slot.weekday) % 7]" />
|
<t t-esc="day_names[int(slot.weekday) % 7]" />
|
||||||
 
|
 
|
||||||
<t t-esc="('%02d:%02d-%02d:%02d' % (int(slot.start_hour or 0), int(((slot.start_hour or 0) % 1) * 60), int(slot.end_hour or 0), int(((slot.end_hour or 0) % 1) * 60)))" />
|
<t t-esc="('%02d:%02d–%02d:%02d' % (int(slot.start_hour or 0), int(((slot.start_hour or 0) % 1) * 60), int(slot.end_hour or 0), int(((slot.end_hour or 0) % 1) * 60)))" />
|
||||||
</t>
|
<t t-if="slot.label"> (<t t-esc="slot.label" />)</t>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue