Skip to content

Instantly share code, notes, and snippets.

@mao-odoo
Last active April 29, 2025 16:27
Show Gist options
  • Save mao-odoo/a146b3c047e58a0a13675e444dd320cf to your computer and use it in GitHub Desktop.
Save mao-odoo/a146b3c047e58a0a13675e444dd320cf to your computer and use it in GitHub Desktop.
[ODOO] trigger barcode from browser dev tools
odoo.__DEBUG__.services['web.core'].bus.trigger('barcode_scanned', "BARCODE_VALUE_HERE", $(".o_web_client")[0]);
// new version , according to https://github.com/odoo/enterprise/blob/7bc8ced2ad93b5004d82e9c75a03661c09685fd2/stock_barcode/static/img/make_barcodes.sh#L120
odoo.__WOWL_DEBUG__.root.env.services.barcode.bus.trigger("barcode_scanned", {barcode:"setyourbarcodehere"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment