OdooWiki OCA HUB

Point of Sale - Prevent closing sessions with stock errors

pos_session_closing_stock_error folder_open OCA/pos open_in_new
Point of Sale License: LGPL-3

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

Blocks 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

point_of_sale
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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 12.0

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

info

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.