deja de usar website_description_limited porque javascript de

website_description ya lo recorta.
This commit is contained in:
snt 2024-09-07 02:48:00 +02:00 committed by snt
parent d74b925235
commit 7faf0459f6
9 changed files with 23 additions and 89 deletions

View file

@ -3,18 +3,18 @@
<template
id="products_item"
name="Display product description"
inherit_id="website_sale.products_item"
inherit_id="website_sale.products_description"
customize_show="True"
>
<xpath expr="//a[@t-field='product.name']" position="after">
<div class="product-desription custom_website_description_excerpt" >
<b><div t-if="product.autor">Autor: <t t-out="product.autor" /></div>
<div t-if="product.editorial">Editora: <t t-out="product.editorial" /></div>
<div t-if="product.genero"><t t-out="product.genero" /></div></b>
<div t-if="product.website_description_limited" class="oe_structure oe_empty custom_website_description_excerpt" data-oe-type="html" data-oe-expressioni="product.website_description">
<p><t t-out="product.website_description_limited"/></p>
<xpath expr="//div[@t-field='product.description_sale']" position="replace">
<div class="oe_structure oe_empty custom_website_description_excerpt" >
<span t-if="product.autor"><b><t t-out="product.autor" /></b></span>
<span t-if="product.genero" class="text-muted small"> (<t t-out="product.genero" />)</span>
<span t-if="product.formato" class="text-muted small"><t t-out="product.formato" /></span>
<div t-if="product.website_description">
<t t-out="product.website_description"/>
</div>
</div>
</div>
</xpath>
</template>
</odoo>