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