Odoo Help


Hiding products in shop

John Doe
on 6/29/16, 5:15 AM 762 views

I would like to ask if there is any good solution to filter/hide some of the products seen in shop. Right now I use something like this: I added some boolean fields to the product.template model, next I edited the code when Im in the shop via html editor (for example when there is foreach loop I added one condition: if product.delivery4(created boolean field) then show the product. My problem is that it doesnt show all products when I refresh the shop after editing code. I can find them via search, but I cant find them looking through /shop. Any ideas?
Thanks in advance.


Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 6/29/16, 5:58 PM

The products in the /shop are only displayed when they has been published to the website. Find those products that you want to hide and in the tab Sales of the product form put it to non published

But is there a way to hide some items on a condition? My main goal was to hide products for users that have zip code which is unsupported.

John Doe
on 6/30/16, 4:27 AM

Yes but you need to tweak the product template of the website_sale by inheritance or just create a new template for displaying the products in another page or where you like.

Axel Mendoza
on 7/4/16, 12:20 PM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 6/29/16, 5:15 AM
Seen: 762 times
Last updated: 7/4/16, 12:21 PM