Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1627 Vistas

Hello, I would like to know how can I create some product categories et then put the breadscrumb ? Please help me ;/, 


thank you

Avatar
Descartar

Your question tag is for eCommerce, so please clarify if you want to create categories for the eCommerce shop or the products in Odoo because both are different.

Mejor respuesta

Hi,

Try the below.

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="categ_breadcumb" inherit_id="website_sale.product">
<xpath expr="//li[hasclass('active')]" position="before">
<li t-if="len(product.public_categ_ids)==1" class="breadcrumb-item">
<a t-att-href="keep('/shop/category/%s' % slug(product.public_categ_ids))">
<span t-field="product.public_categ_ids.name"/>
</a>
</li>
</xpath>
</template>
</odoo>

Regards

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
ago 25
1554
2
jul 25
3244
0
ene 25
1534
0
oct 24
1665
1
mar 24
3136