OdooWiki OCA HUB

Sale Input Barcode

sale_input_barcode folder_open OCA/stock-logistics-barcode open_in_new
Tools License: AGPL-3

Create a sale order line, finding the product using a barcode scanner

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Scan product barcodes directly on a sale order to add order lines quickly. A setting lets you choose whether each scan creates a new line or increases the quantity of an existing line.

This module adds barcode scanning to sales orders so users can build an order by scanning products instead of searching for them manually.

On the sale order form, a barcode icon button appears in the header next to Confirm. It opens a small "Input Product" window where the scanned barcode is entered. The order form also shows a barcode handler field, so a scanner can send the code straight into the order.

When a barcode is scanned, the system looks for a product whose barcode matches. If no product matches, an error message is shown. If several products share the same barcode, the system refuses to guess and shows an error listing them. When a single product is found, a new sale order line is created with quantity 1, the product name and its list price.

In the Sales settings there is a new option: "Increase quantity instead of creating a new line". When enabled, scanning a product already present on the order simply adds 1 to its quantity instead of adding a second line. When disabled, every scan creates a separate line.

The module works on sale.order and sale.order.line, and adds a reusable helper for decoding barcodes and building line values, which other modules can extend.

Depends on

sale_managementbarcode_action

Required by other modules

Models and fields (4)
  • sale.order · new model
  • sale.order.line · new model
  • res.config.settings · extends an existing modelsale_barcode_update_existing_line (Increase quantity instead of creating a new line)
  • product.barcode.line.mixin · new model

Text generated by AI (DeepSeek) from reading the Odoo 14.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.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/stock-logistics-barcode.

terminal Installation and usage

OCA documentation · Odoo 14.0

No specific configuration necessary

  • Navigate to a Sales Order.
  • Press the button in the header with the QR Code icon
  • Use a barcode scanner to scan a barcode.

Alternatively,

  • Navigate to a Sales Order.
  • Activate "Edit Mode"
  • Use a barcode scanner to scan a barcode.

If a product is found using the barcode, a new line with that product will be added to the Sales Order.

By default, each product scan adds a new line to the sales order. However, you can change this behavior in the sales settings. To have the system increase the quantity of an existing product line instead of creating a new one, follow these steps:

  • Go to the Sales Settings section.
  • Locate the option labeled "Increase quantity instead of creating a new line".
  • Check the box to activate this option and save to apply the changes.

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.