Browse Source

Jun 12: [FIX] Bug Fixed 'pos_restrict_product_stock'

pull/320/head
RisvanaCybro 11 months ago
parent
commit
295a63c4e8
  1. 2
      pos_restrict_product_stock/__manifest__.py
  2. 6
      pos_restrict_product_stock/doc/RELEASE_NOTES.md
  3. 1
      pos_restrict_product_stock/models/pos_session.py

2
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",

6
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

1
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

Loading…
Cancel
Save