But if i remove the attribute i created (that does not create variants), the internal reference is removed!
This only happens in the carousel, not the main products page.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
But if i remove the attribute i created (that does not create variants), the internal reference is removed!
This only happens in the carousel, not the main products page.
Because the Products Carousel uses a different QWeb template than the main shop grid, and that template automatically appends the combination name when the product has attributes — even if those attributes do NOT generate variants.
What happens is:
You added an attribute (even with "No Variants").
Odoo tries to compute the product display name using:
product.display_name
When attributes are present, Odoo builds a name like:
“Product Name (Internal Reference)”
because the system thinks it is a variant-like product.
The main shop page (website_sale.products) cleans the title and hides internal references.
BUT the carousel block uses a simpler snippet template, which does not hide internal references — so it shows the full product display_name.
That’s why:
Carousel shows internal reference
Shop page hides it
Create an inherited view for:
website_sale.products_item
Then replace product name rendering:
<t t-name="your_module.remove_internal_ref" inherit_id="website_sale.products_item"> <xpath expr="//div[@class='product_name']" position="replace"> <div class="product_name"> <t t-esc="product.name"/> </div> </xpath> </t>
This makes the carousel use only the product name — not the computed display_name.
Thank you very much sir.
I don't like how this behaviour is by default so it looks like i need customization :)
Have a great day.
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.