Display Stock in POS | Restrict Out-of-Stock Products in POS
by Cybrosys Techno Solutions https://www.cybrosys.comAvailability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Point of Sale (point_of_sale)
• Discuss (mail) • Inventory (stock) • Invoicing (account) |
Lines of code | 246 |
Technical Name |
pos_restrict_product_stock |
License | AGPL-3 |
Website | https://www.cybrosys.com |
Versions | 15.0 16.0 17.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Point of Sale (point_of_sale)
• Discuss (mail) • Inventory (stock) • Invoicing (account) |
Lines of code | 246 |
Technical Name |
pos_restrict_product_stock |
License | AGPL-3 |
Website | https://www.cybrosys.com |
Versions | 15.0 16.0 17.0 |

Display Stock in POS | Restrict Out-of-Stock Products in POS
Restrict Out of Stock Product from PoS session and Display the Stock

Key Highlights
Product availablity can be viewed in Pos
This module enhances your Point of Sale by providing real-time visibility into product availability, displaying both the on-hand quantity and virtual quantity.
Restrict selling unavailable product
It empowers you to optimize your ordering process by seamlessly restricting the selection of out-of-stock products within the POS system.

Go to PoS Settings -> Enable Display Stock in POS and select which type of quantity you have to be visible in session. If you want to restrict out of stock products from ordering based on the quantity type you selected.



If the selected type is "on hand" ,then on hand quantity can be visible in left-top of product item.


If the quantity of the product is zero then it visible in different color.If you try to order out of stock product an error popup will render, still you want to order the product then click order button.


The out-of-stock product is added to orderline.


If you selected the "virtual quantity" for displaying it will display right-top of each product item and its out of stock products in different color.


Or If you select "both" to display then it visible both type of quantity.
-
Display both on-hand quantity and Virtual quantity of every product.
-
Restrict out of stock products from ordering them.
-
We can choose which type of (on-hand and virtual) quantity you have to be visible in POS.
-
We can also specify which type of (on-hand and virtual) quantity you have to restrict if the product is out of stock.
Initial Commit for Display Stock in POS | Restrict Out-of-Stock Products in POS.
Related Products
Our Services

Odoo Customization

Odoo Implementation

Odoo Support

Hire Odoo Developer

Odoo Integration

Odoo Migration

Odoo Consultancy

Odoo Implementation

Odoo Licensing Consultancy
Our Industries

Trading
Easily procure and sell your products

POS
Easy configuration and convivial experience

Education
A platform for educational management

Manufacturing
Plan, track and schedule your operations

E-commerce & Website
Mobile friendly, awe-inspiring product pages

Service Management
Keep track of services and invoice

Restaurant
Run your bar or restaurant methodically

Hotel Management
An all-inclusive hotel management application
Support
Got questions or need help? Get in touch.
Say hi to us on WhatsApp!
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
negative stock is not restricted
This module has a big Bug.
Here we only check the line-based condition of the order line. If the same product is in more than one line, we can sell our out of negative stock.
example:
product 1 stock : 5
pos orderline :
line one product 1 : 4
line two product 1 : 3
this condition negative stock not restricted.
module not working while using barcode scanner
Yes you are right error is linked to different module but for this
while i am adding any product using barcode scanner it will added without any popup
Re: module not working while using barcode scanner
We have updated the app. Thanks for reporting. Please get the latest version.
The module is not functioning in Odoo v17. Please see the traceback below while attempting to enable negative stock.
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 1783, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/odoo/src/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/home/odoo/src/odoo/odoo/http.py", line 1810, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/home/odoo/src/odoo/odoo/http.py", line 2014, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/home/odoo/src/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/home/odoo/src/odoo/odoo/http.py", line 759, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 24, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 468, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/odoo/addons/web/models/models.py", line 73, in web_save
self = self.create(vals)
File "<decorator-gen-319>", line 2, in create
File "/home/odoo/src/odoo/odoo/api.py", line 414, in _model_create_multi
return create(self, [arg])
File "/home/odoo/src/odoo/addons/point_of_sale/models/res_config_settings.py", line 153, in create
pos_config.with_context(from_settings_view=True).write(pos_fields_vals)
File "/home/odoo/src/odoo/addons/point_of_sale/models/pos_config.py", line 446, in write
vals = self._keep_new_vals(vals)
File "/home/odoo/src/odoo/addons/point_of_sale/models/pos_config.py", line 502, in _keep_new_vals
cache_value = config_field.convert_to_cache(val, self)
File "/home/odoo/src/odoo/odoo/fields.py", line 2838, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for pos.config.stock_type: 'onhand'
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (https://vasaindica-staging-15755174.dev.odoo.com/web/assets/ac1efbd/web.assets_web.min.js:2893:163)
at XMLHttpRequest.<anonymous> (https://vasaindica-staging-15755174.dev.odoo.com/web/assets/ac1efbd/web.assets_web.min.js:2897:13)
Re:
We have checked the module and were unable to reproduce the issue you mentioned. It may be helpful to consider that there could be a conflict with other third-party modules. Do you have any along with this addon? Please write to us at odoo@cybrosys.com.
Problem module V 16 comunnity
I have tested the module and found that when a sale is made from the point of sale module, the quantities are not updated in real time nor is the stock availability updated when completing the sale and returning to the customer's view to take orders."
I try this module and not working
I try this module and it not working
I try this module and it not working