| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Invoicing (account) • Discuss (mail) |
| Lines of code | 44 |
| Technical Name |
codex_website_hide_empty_categories |
| License | LGPL-3 |
| Website | https://www.code-experts.co |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Invoicing (account) • Discuss (mail) |
| Lines of code | 44 |
| Technical Name |
codex_website_hide_empty_categories |
| License | LGPL-3 |
| Website | https://www.code-experts.co |
Website Hide Empty Categories
Automatically hide product categories with no published products
Key Features
AutoHide Empty Categories
Categories with zero published products are automatically hidden from the website shop. No manual configuration needed.
Intelligent SubCategory Detection
A parent category remains visible if any of its child categories contain published products even if the parent itself has none.
Stored & Indexed Field
The `has_published_products` field is stored in the database and indexed zero performance impact, even on large catalogs.
Backend Visibility
The computed field is added to the category form view administrators can see at a glance why a category is (or isnt) visible.
Zero Configuration
Install and forget. The module works immediately no settings, no checkboxes, no manual updates.
Cleaner Shop Navigation
Eliminate clutter. Customers only see categories that actually contain products better UX, faster browsing.
How It Works
Backend: Transparent Visibility Status
A new readonly field Has Published Products appears in the category form. It shows `True` or `False` based on the live product data administrators can instantly understand why a category is visible or hidden.
Before Installation: All Categories Shown
Odoos default behavior displays every public category, even if it contains zero published products. This leads to empty sections, confusing customers and wasting navigation space.
After Installation: Only Categories With Products
Empty categories are automatically filtered out. The shop navigation becomes clean, relevant, and professional exactly what your customers expect.
Why Choose Website Hide Empty Categories?
Improved Customer Experience
Customers won't click on empty categories no frustration, no dead ends.
Lightning Fast
Stored + indexed = no live computation on the frontend. Your shop stays fast even with thousands of categories.
Preserves Category Structure
Parents with hidden children are only hidden if all descendants are empty. No orphaned categories.
Zero Maintenance
Works automatically with your existing product/category workflow. Nothing to configure, nothing to update.
100% Odoo Native
Built with standard Odoo ORM, no hacky SQL, no external dependencies. Safe and upgrade friendly.
Different Category Views
Applicable to vertical side category view and the top category view as well.
Perfect For
Ecommerce Stores
Keep category navigation clean and relevant
Large Catalogs
Hundreds of categories, many empty auto cleanup is essential
Seasonal Stores
Categories appear/disappear automatically as products go in/out of stock
Frequently Asked Questions
Does this module delete any data?
No. It only hides categories from the website navigation. All categories remain fully editable in the backend and can be reenabled instantly when products are published.
How often is the visibility updated?
Instantly. The field is recomputed whenever a products `is_published` status changes, or when categories are linked/unlinked. No cron job, no delay.
Can I manually override a category to keep it visible even if empty?
The current version is fully automatic. If you need manual overrides, contact us we can provide a custom extension.
Is it compatible with Odoo 17?
Yes, built and tested on Odoo 17 Community and Enterprise. It does not depend on any other custom modules.
Easy Installation
Install the module from Odoo Apps and refresh your website. Thats it. No configuration steps, no new menus your category navigation will be automatically cleaned up.
No Configuration Required
Instant Results
100% Reversible (Uninstall to restore default behavior)
Need Support?
Our dedicated support team is here to help you with installation, configuration, and any questions you may have about the Website Hide Empty Categories Automatic Cleanup of Empty Ecommerce Categories.
| hello@code-experts.co |
+97317224488
|
+97317224488
|
www.code-experts.co
|
© 2026 Code Experts IT Solutions. All Rights Reserved.
Please log in to comment on this module