
Auto Hide Out-of-Stock Products in eCommerce
Automatically hides out-of-stock products from the online store, ensuring customers only see available items.





Description
The Auto Hide Out-of-Stock Products module enhances Odooâs eCommerce functionality by automatically managing product visibility based on stock levels. In the default Odoo setup, out-of-stock products remain visible to customers with an "Out of Stock" label, requiring manual hiding. This module automates the process by instantly hiding products that are no longer in stock, ensuring a smoother shopping experience and reducing customer frustration.
- Enhances Odooâs eCommerce functionality.
- Automatically manages product visibility based on stock levels.
- Hides out-of-stock products instantly.
- Ensures a smoother shopping experience.
- Reduces customer frustration.

Key Features

Usage
Technical
Install the products_auto_show addon in your Odoo 18 environment. This module extends the product template form by adding the auto_show field and automatically updates the product's published status (is_published) based on the available stock (qty_available) from the linked product variants.
User Experience
- Navigate to the Products section (via eCommerce or Inventory module).
- Open a product form and locate the "Ecommerce Shop" group where the auto_show field is displayed.
- Check the auto_show box to enable automatic publishing.
- If auto_show is enabled and qty_available is greater than zero, the product will automatically be marked as published (is_published = True).
- If qty_available is zero or less, the product will be unpublished (is_published = False).
- If auto_show is not enabled, the published status remains unchanged.
Known Issues / Roadmap
- No critical issues reported so far.
- Future updates may include more granular control over stock thresholds for automatic publishing.
- You must refresh the product page for changes to take effect.
Bug Tracker
contact support at admin@tecpill.com.
Credits

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