MODULES / OPERATIONS
Barcode Scanning
Find products by scanned barcode in sales and purchase documents.
Overview
| Module id | ask_barcode_scanning |
|---|---|
| Version | 1.0.0 |
| Who uses it | Anyone who uses the screens listed below. |
| Installed | On demand, from Settings → Modules. Anything it needs is installed with it. |
How it links to other modules
- Needs: Invoicing, Vendor Bills
- Works better with: no other module in particular
- Needed by: no other module
A module that is needed cannot be turned off while the module that needs it is on.
Details
Barcode Scanning
Optional adaptation of D:/Odoo18/sparkosol/addons.odoo18/barcode_scanning_sale_purchase. Install Barcode Scanning from Settings → Modules, then focus Scan SKU or barcode in a sales order, purchase order, customer invoice, vendor bill, or quotation. A scan matches the product's barcode, a packaging barcode (a Roll label scans as the whole roll), or its SKU (what ASKERP product labels print), ignoring case. USB/Bluetooth scanners that type a code and press Enter work as keyboard input; the camera button reads QR codes and barcodes on Android (Chrome or the ASKERP app). The product is resolved in the active company and added to the existing document line editor for review.
Barcodes are unique within a company, case-insensitive, and limited to 128 characters. Scan lookup rejects unknown and archived products, and a SKU that matches two products differing only in case. Product IDs and all document values still pass through the existing save, approval, receipt and posting services. Scanning never writes stock or ledger entries itself; counting stock is Inventory → Warehouse scan (D132).
Validation: npx vitest run addons/ask_barcode_scanning lib/modules.test.ts server/product-categories.test.ts.