muestra un extracto de la descripción en las listas de productos.

This commit is contained in:
snt 2024-09-06 13:41:47 +02:00
parent 6eb23b6e50
commit 67013f8d4c
8 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="products_item"
name="Display product description"
inherit_id="website_sale.products_item"
customize_show="True"
>
<xpath expr="//a[@t-field='product.name']" position="after">
<div t-if="product.website_description_limited" class="product-website-description">
<t t-raw="product.website_description_limited"/>
</div>
</xpath>
</template>
</odoo>