mover campos de compra colectiva a su página propia dentro del notebook

This commit is contained in:
GitHub Copilot 2026-08-16 12:00:29 +02:00
parent 5de7573fba
commit 4c1813a811
3 changed files with 43 additions and 4 deletions

View file

@ -658,6 +658,10 @@
</t>
<div class="card-body d-flex flex-column">
<h6 class="card-title" t-esc="product.name" />
<!-- Tags/supplier/origin always occupy their slot (empty and
aria-hidden when the product has no value) so that the price
row below lines up across every card in the grid row,
regardless of which optional fields a given product has. -->
<t t-if="product.product_tag_ids">
<div class="product-tags">
<t t-foreach="filtered_product_tags.get(product.id, {}).get('published_tags', product.product_tag_ids)" t-as="tag">
@ -672,6 +676,9 @@
</t>
</div>
</t>
<t t-else="">
<div class="product-tags" aria-hidden="true" />
</t>
<t t-if="product_supplier_info.get(product.id)">
<p class="product-supplier">
<small>
@ -679,6 +686,9 @@
</small>
</p>
</t>
<t t-else="">
<p class="product-supplier" aria-hidden="true" />
</t>
<t t-if="product.origin_text">
<p class="product-origin">
<small>
@ -687,6 +697,9 @@
</small>
</p>
</t>
<t t-else="">
<p class="product-origin" aria-hidden="true" />
</t>
<t t-set="price_info" t-value="product_price_info.get(product.id, {})" />
<t t-set="display_price" t-value="product_display_info.get(product.id, {}).get('display_price', 0.0)" />
<t t-set="base_price" t-value="price_info.get('list_price', product.list_price)" />