I'm trying to add change the text displayed on a template. The template allready inherits the inherits the main shop template and adds a feature. I want to change the text and add a div. But I cannot get the element. It throws the cannot find element error.
Template:
<template id="products" inherit_id="website_sale.products" priority="15">
<xpath expr="//div[hasclass('o_wsale_products_main_row')]" position="before">
<t t-if="some condition">
<t t-if="some condition">
<div class="col-12">
<h5 class="mb-3">Categories</h5>
I want to replace the h5 element:
<xpath expr="//h5[@class='mb-3']" position="replace">
Tried also with:
<xpath expr="//h5[hasclass('mb-3')]" position="replace">But it throws the same error
Element '<xpath expr="//h5[@class='mb-3']">' cannot be located in parent view