← all modules

barcode_parser_guard

One empty scan can't wedge the scanner screen.

Free | because it's twenty lines | Community & Enterprise

Odoo's barcode parser reads barcode.length without checking a barcode was passed. Callers can reach it with undefined, the JavaScript throws, and the scanner screen stops responding — operator at a cart, gun in hand, no way forward but a page reload.

  • Guards the falsy case, defers to core for every valid scan
  • Standard patch() helper — no core file touched
  • Installs automatically alongside barcodes

Need a tweak to this module?

Customizations to any Laudon Labs module are quoted through the same intake form. Typical reply in under a day.

Start a request