From 295a63c4e8a3bbd43a9983f2e9c99b6c7050a438 Mon Sep 17 00:00:00 2001 From: RisvanaCybro Date: Wed, 12 Jun 2024 18:23:30 +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 | 6 ++++++ pos_restrict_product_stock/models/pos_session.py | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pos_restrict_product_stock/__manifest__.py b/pos_restrict_product_stock/__manifest__.py index 2fd13ea2a..6d93f3477 100644 --- a/pos_restrict_product_stock/__manifest__.py +++ b/pos_restrict_product_stock/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################### { 'name': 'Display Stock in POS | Restrict Out-of-Stock Products in POS', - 'version': '16.0.1.0.0', + 'version': '16.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 5381ad26f..f0bb491bd 100644 --- a/pos_restrict_product_stock/doc/RELEASE_NOTES.md +++ b/pos_restrict_product_stock/doc/RELEASE_NOTES.md @@ -4,3 +4,9 @@ #### Version 16.0.1.0.0 #### ADD Initial Commit for Display Stock in POS | Restrict Out-of-Stock Products in POS + +#### 12.06.2024 +#### Version 16.0.1.0.1 +#### ADD +Code updated that quantity would be shown based on the warehouse in the operation type. Considered the case of +multiple warehouse \ No newline at end of file diff --git a/pos_restrict_product_stock/models/pos_session.py b/pos_restrict_product_stock/models/pos_session.py index 3c0112128..136e247b1 100644 --- a/pos_restrict_product_stock/models/pos_session.py +++ b/pos_restrict_product_stock/models/pos_session.py @@ -34,4 +34,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['context']['warehouse'] = self.config_id.picking_type_id.warehouse_id.id return result