Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Cannot change class with <xpath> (9.0)

By
Axel Kerbec
on 9/19/16, 7:45 AM 167 views

On the shop page of the e-commerce module, I would like to change the class of

<div id="products_grid_before" class="col-md-3 col-sm-4 hidden-xs">

I would like to change `hidden-xs` to `show-xs`. I created the following xpath selector:

<xpath expr="//div[@id='products_grid_before']" position="attributes">            
   <attribute name="class">col-md-3 col-sm-4 show-xs</attribute>        
</xpath>


However the class doesn't change. The xpath selector is placed well in the code and works as expected if I change 'name' to, say 'a'.

How can I change the class of #products_grid_before?


Thank you!

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/19/16, 7:45 AM
Seen: 167 times
Last updated: 9/19/16, 11:27 AM