Point of Sale - Prevent closing sessions with stock errors
Prevent closing PoS Sessions that have stock.picking errors.
These errors usually happen when selecting a wrong serial/lot number in the POS.
auto_awesome What this module does
AI-generated from the code · Odoo 12.0Blocks closing a Point of Sale session when it still has stock transfer errors, unless the option 'Allow closing sessions with stock errors' is enabled in the Point of Sale configuration.
This module adds a safety check to the Point of Sale closing process. When a user tries to close a session, Odoo first looks at whether that session still has stock transfer errors (for example, a wrong serial or lot number was picked during a sale). If there are errors and the option is not enabled, the session cannot be closed and an error message appears telling the user how many errors exist and which Point of Sale configuration to change.
A new checkbox, 'Allow closing sessions with stock errors', is added to the Point of Sale configuration form, in the inventory location section. By default it is off, so sessions with stock errors are blocked. Turning it on lets users close such sessions anyway.
The module touches the Point of Sale configuration (pos.config) and the Point of Sale session (pos.session). It does not create new menus or reports; the only visible change is the new checkbox in the Point of Sale settings and the blocking message when closing a session.
Depends on
Models and fields (2)
- pos.config · extends an existing modelallow_session_closing_with_stock_errors (Allow closing sessions with stock errors)
- pos.session · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 12.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/pos.
terminal Installation and usage
OCA documentation · Odoo 12.0Configuration
Source · Odoo 12.0In any Point of Sale configuration (pos.config), disable "Allow closing sessions with stock errors" to prevent closing sessions with stock errors.
No verified information in OCA: Installation, Usage.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.