Last active
April 29, 2025 16:27
-
-
Save mao-odoo/a146b3c047e58a0a13675e444dd320cf to your computer and use it in GitHub Desktop.
[ODOO] trigger barcode from browser dev tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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