From e68f5d1d685dfdc76defc3b8516447a149adeb8a Mon Sep 17 00:00:00 2001 From: Risvana Cybro Date: Mon, 10 Nov 2025 18:36:01 +0530 Subject: [PATCH] Nov 10: [FIX] Bug Fixed 'pos_restrict_product_stock' --- pos_restrict_product_stock/__manifest__.py | 2 +- .../doc/RELEASE_NOTES.md | 6 +++++ .../models/pos_session.py | 1 + .../static/description/index.html | 24 ++++++++++++++++++- .../static/src/js/OrderScreen.js | 3 ++- .../static/src/js/ProductScreen.js | 3 ++- 6 files changed, 35 insertions(+), 4 deletions(-) diff --git a/pos_restrict_product_stock/__manifest__.py b/pos_restrict_product_stock/__manifest__.py index aa451cffe..22abf5ae6 100644 --- a/pos_restrict_product_stock/__manifest__.py +++ b/pos_restrict_product_stock/__manifest__.py @@ -20,7 +20,7 @@ ############################################################################# { 'name': 'Display Stock in POS | Restrict Out-of-Stock Products in POS', - 'version': '18.0.1.0.0', + 'version': '18.0.1.0.1', 'category': 'Point of Sale', 'summary': """Enhance your Point of Sale experience by preventing the ordering of out-of-stock products during your session""", diff --git a/pos_restrict_product_stock/doc/RELEASE_NOTES.md b/pos_restrict_product_stock/doc/RELEASE_NOTES.md index 88ec29e5e..3c8e3dfee 100644 --- a/pos_restrict_product_stock/doc/RELEASE_NOTES.md +++ b/pos_restrict_product_stock/doc/RELEASE_NOTES.md @@ -4,3 +4,9 @@ #### Version 18.0.1.0.0 #### ADD - Initial Commit for Display Stock in POS | Restrict Out-of-Stock Products in POS + +#### 05.11.2025 +#### Version 18.0.1.0.1 +#### Update +- Service products and products measured in weight using “To Weigh In Scale” are now excluded from +restricts stock availability check in POS. diff --git a/pos_restrict_product_stock/models/pos_session.py b/pos_restrict_product_stock/models/pos_session.py index f5d402214..d8aaba1b8 100644 --- a/pos_restrict_product_stock/models/pos_session.py +++ b/pos_restrict_product_stock/models/pos_session.py @@ -33,4 +33,5 @@ class PosSession(models.Model): result = super()._loader_params_product_product() result['search_params']['fields'].append('qty_available') result['search_params']['fields'].append('virtual_available') + result['search_params']['fields'].append('type') return result diff --git a/pos_restrict_product_stock/static/description/index.html b/pos_restrict_product_stock/static/description/index.html index 57177d0e4..5195427d7 100644 --- a/pos_restrict_product_stock/static/description/index.html +++ b/pos_restrict_product_stock/static/description/index.html @@ -175,7 +175,29 @@ >Email Us - + + + Skype Us +