Website Stock Availability Filter
by Odoo DevHouse https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse$ 120.77
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• eCommerce (website_sale) • Discuss (mail) • Invoicing (account) • Website (website) |
| Lines of code | 287 |
| Technical Name |
website_stock_avail_filter |
| License | OPL-1 |
| Website | https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• eCommerce (website_sale) • Discuss (mail) • Invoicing (account) • Website (website) |
| Lines of code | 287 |
| Technical Name |
website_stock_avail_filter |
| License | OPL-1 |
| Website | https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse |
Odoo Website Stock Availability Filter
Filter products by stock availability in your Odoo e-commerce with a beautiful toggle switch
- Show only in-stock products in shop listings
- Beautiful toggle switch UI for easy filtering
- Mobile-responsive design with offcanvas support
- Smart stock calculation including storable and non-storable products
- Warehouse-aware filtering (supports multi-warehouse setups)
- Session-based filter persistence
- Zero configuration required - works out of the box
The module adds a smart stock filter to your Odoo e-commerce that intelligently determines product availability:
- Smart Filtering: Filters products based on actual stock levels, not just on-hand quantities
- Product Types: Considers both storable products (with physical stock) and non-storable products (services, consumables) which are always available
- Warehouse Support: Respects warehouse settings from your website configuration
- User Experience: Toggle switch with smooth animations and immediate feedback
- Mobile Optimized: Filter appears in mobile offcanvas menu for easy access
- Persistence: Filter state is saved per user session
Desktop Interface
Beautiful toggle switch in the left sidebar with smooth animations
Filter Active (Showing Only In-Stock Products)

Toggle switch is green when filter is active. Only products with available stock are displayed.
Filter Inactive (Showing All Products)

Toggle switch is gray when filter is inactive. All products are displayed regardless of stock.
Mobile Interface
Integrated into mobile offcanvas filters for easy access on small screens
Mobile Offcanvas Menu

Stock filter appears at the top of mobile filter offcanvas menu.
Mobile Filter Active

Same toggle switch design optimized for mobile touch interaction.
Filter Results
See the difference in product listings when filter is toggled
Without Stock Filter

All products shown, including out-of-stock items (marked with red indicators).
With Stock Filter

Only in-stock products displayed, improving customer experience.
The module uses sophisticated logic to determine product availability:
Storable Products
Products are considered available if they have at least one variant with free_qty > 0
- Uses Odoo's
free_qtywhich considers reservations and incoming shipments - Respects warehouse context if configured
- Works with both single product templates and product variants
Non-Storable Products
Services, consumables, and digital products are always shown as "available"
- Service-type products don't require physical stock
- Consumables are considered always available
- Digital products follow non-storable rules
Warehouse Integration
Filter respects website warehouse configuration for accurate stock levels
- Uses warehouse from website settings if configured
- Falls back to default warehouse behavior if not specified
- Supports multi-warehouse setups
E-commerce Stores
- Improve customer experience by showing only available products
- Reduce customer frustration from ordering out-of-stock items
- Increase conversion rates by focusing on sellable inventory
Inventory Management
- Accurate stock display based on real available quantities
- Warehouse-specific filtering for multi-location businesses
- Better inventory turnover by prioritizing in-stock items
User Experience
- Intuitive toggle switch interface
- Immediate visual feedback when toggling
- Consistent experience across desktop and mobile
- Filter persistence throughout shopping session
Business Benefits
- Reduced backorder situations
- Improved customer satisfaction
- Better inventory visibility
- Increased operational efficiency
Support
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module