Odoo Community Association

Barcode Camera

Beta License: AGPL-3 OCA/barcode-interface Translate me on Weblate Try me on Runboat

This module adds the device camera as a scan source to the Barcode app, so operators can scan without a dedicated hardware scanner.

A floating button opens the camera with Odoo’s own barcode scanner dialog. The code it reads is fed into the same event bus a hardware scanner uses, so the active screen handles it exactly like any other scan. The button is plugged in through the barcode_app_widgets registry of barcode_scanner, without patching the app.

Table of contents

Usage

Install barcode_camera next to a feature module such as barcode_stock.

A camera button appears in the bottom-right corner of every screen that reads a scan, whichever module it comes from: the home screen, the picking list and picking, the move wizard, the selectors, and so on. Tap it, point the camera at a barcode, and the scan is processed as if it came from a hardware scanner. The codes read are the ones Odoo’s scanner dialog reads: EAN, UPC, Code 128, Code 39, ITF, QR, Data Matrix and the like.

There is nothing to register for that: a screen reads scans through the hooks of barcode_scanner (useBarcodeHandler), which counts the screens doing so, and the button shows whenever one does.

The browser only gives access to the camera in a secure context (HTTPS or localhost). Without it, like Odoo’s own camera buttons, the button is not shown, and hardware or manual scanning remain available.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Binhex

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

szalatyzuzanna

This module is part of the OCA/barcode-interface project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.