OdooWiki OCA HUB

POS Barcode Block

pos_barcode_block folder_open OCA/pos open_in_new
Point of Sale License: AGPL-3

This module blocks the POS if a product is scanned with a barcode that doesn't exist in Odoo.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

When a barcode is scanned in the Point of Sale that does not match any product, the POS shows an "Unknown Barcode" alert and temporarily blocks further scanning until the cashier closes the message.

This module changes how the Point of Sale behaves when a barcode is scanned that Odoo cannot match to any product.

  • Normally the POS only shows a small notification for an unknown code. With this module, a blocking alert dialog titled "Unknown Barcode" appears instead, with the message "No product found associated with code: ..." showing the scanned code.
  • While this alert is open, the barcode reader is blocked: any further scans are ignored, so the cashier cannot keep scanning products until the dialog is closed.
  • Closing the alert releases the block and scanning works again as usual.

The change is applied to the POS store logic (PosStore), which is the central component that manages the Point of Sale session and its barcode reader. No new menus, models, reports or scheduled actions are added; the module only alters the existing scanning behaviour inside the Point of Sale screen. It depends on the standard Point of Sale app (point_of_sale).

Depends on

point_of_sale

Text generated by AI (DeepSeek) from reading the Odoo 18.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 18.0
  • Select a product or create a new one
  • On the barcode field set the reference you want
  • Open a POS session
  • With a barcode generator tool, write a reference that isn't set on any of your products
  • An error modal screen will appear

No verified information in OCA: Installation.

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.