Browse Source

Jun 12: [FIX] Bug Fixed 'pos_restrict_product_stock'

pull/313/merge
Cybrosys Technologies 1 month ago
parent
commit
b13266d849
  1. 2
      pos_restrict_product_stock/__manifest__.py
  2. 8
      pos_restrict_product_stock/doc/RELEASE_NOTES.md
  3. 2
      pos_restrict_product_stock/static/description/index.html
  4. 4
      pos_restrict_product_stock/static/src/js/RestrictStockPopup.js

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

8
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.
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

2
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);">
<div class="d-flex mb-3"
style="font-size: 0.8rem; font-weight: 500;"><span>Version
17.0.1.0.0</span><span
17.0.2.1.2</span><span
class="px-2">|</span><span
style="color: #714B67;font-weight: 600;">Released on:28th November 2023</span>
</div>

4
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();
}
}

Loading…
Cancel
Save