From b13266d849e637268779a8b57d8c703e7f363041 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Thu, 12 Jun 2025 13:41:55 +0530 Subject: [PATCH] Jun 12: [FIX] Bug Fixed 'pos_restrict_product_stock' --- pos_restrict_product_stock/__manifest__.py | 2 +- pos_restrict_product_stock/doc/RELEASE_NOTES.md | 8 +++++++- pos_restrict_product_stock/static/description/index.html | 2 +- .../static/src/js/RestrictStockPopup.js | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pos_restrict_product_stock/__manifest__.py b/pos_restrict_product_stock/__manifest__.py index 8607e5c2e..41270feee 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': '17.0.2.1.1', + 'version': '17.0.2.1.2', '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 b1f1b001e..78fa2666b 100644 --- a/pos_restrict_product_stock/doc/RELEASE_NOTES.md +++ b/pos_restrict_product_stock/doc/RELEASE_NOTES.md @@ -9,4 +9,10 @@ #### Version 17.0.2.1.1 #### Update - Added a new feature that restricts stock availability when clicking the payment button. -This will help prevent the ordering of out-of-stock products, whether entered via barcode or through any other method. \ No newline at end of file +This will help prevent the ordering of out-of-stock products, whether entered via barcode or through any other method. + + +#### 12.06.2025 +#### Version 17.0.2.1.2 +#### Update +- Fixed the issue occurring while ordering out-of-stock products \ No newline at end of file diff --git a/pos_restrict_product_stock/static/description/index.html b/pos_restrict_product_stock/static/description/index.html index a0238b27c..4831a74b3 100644 --- a/pos_restrict_product_stock/static/description/index.html +++ b/pos_restrict_product_stock/static/description/index.html @@ -358,7 +358,7 @@ style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
Version - 17.0.1.0.0|Released on:28th November 2023
diff --git a/pos_restrict_product_stock/static/src/js/RestrictStockPopup.js b/pos_restrict_product_stock/static/src/js/RestrictStockPopup.js index 5bada1f09..4eca14794 100644 --- a/pos_restrict_product_stock/static/src/js/RestrictStockPopup.js +++ b/pos_restrict_product_stock/static/src/js/RestrictStockPopup.js @@ -9,10 +9,10 @@ class RestrictStockPopup extends AbstractAwaitablePopup { // On clicking order product button on popup, it will add product to orderline if(this.props.pro_id){ var product = this.env.services.pos.db.get_product_by_id(this.props.pro_id) - product.order_status = True + product.order_status = true this.env.services.pos.selectedOrder.add_product(product); } - this.props.resolve(true); + this.props.resolve(true); this.cancel(); } }