WIP search domain ebsite

This commit is contained in:
snt 2024-09-18 17:21:07 +02:00
parent 3e0c3eeccb
commit d57fa37505
8 changed files with 56 additions and 75 deletions

View file

@ -1,5 +1,5 @@
{
"name": "Website Sale Product Library.",
"name": "Website Sale Product Library",
"version": "16.0.1.0.3",
"category": "Website",
"summary": "Modifica website_sale para una librería / Tienda de música.",
@ -15,13 +15,13 @@ Modifica la tienda online con los campos de product_library.
* Linka internal description con website_description.
* Muestra en product en la lista de productos los campos de product_library (subtítulo, autor, editorial, formato, género).
* En la vista del producto, añade subtítulo y autor después del nombre y la descripción.
* Búsueda en la web por autor, editorial y subtítulo.
* Búsqueda en la web por autor, editorial y subtítulo, quita la búsqueda en descripción.
""",
"depends": ["website_sale", "product_library"],
"data": ["views/website_sale_views.xml"],
"assets": {
"web.assets_frontend": [
"website_sale_product_description_displayed/static/src/scss/custom.scss",
"website_sale_product_library/static/src/scss/custom.scss",
],
},
"application": False,

View file

@ -8,10 +8,10 @@
>
<xpath expr="//a[@t-field='product.name']" position="replace">
<a class="text-primary text-decoration-none" itemprop="name" t-att-href="product_href">
<span><t t-att-content="product.name" t-out="product.name" class="fw-bold"/>. </span>
<span t-if="product.subtitle" class="text-small-muted"><t t-out="product.subtitle" />. </span>
<span t-if="product.autor"><b><t t-out="product.autor" /></b></span>
</a>
<span><t t-att-content="product.name" t-out="product.name" class="fw-bold"/>. </span>
<span t-if="product.subtitle" class="text-small-muted"><t t-out="product.subtitle" />. </span>
<span t-if="product.autor"><b><t t-out="product.autor" /></b></span>
</a>
</xpath>
</template>
<template