Odoo 18 Barcode scanner incompatibility

Hi,

I’ve found an incompatibility with Odoo 18 application Barcode scanner function.

Device: Fairphone6
/e/OS/ : 3.4
Odoo: Odoo 18.0+e (Edition Enterprise)

Error logs:

UncaughtPromiseError > OwlError Uncaught Promise > An error occured in the owl lifecycle (see this Error’s “cause” property)
Occured on a***.odoo.com on
OwlError: An error occured in the owl lifecycle (see this Error’s “cause” property)
Error: An error occured in the owl lifecycle (see this Error’s “cause” property)
at handleError (***.odoo.com/web/assets/6c273f9/web.assets_web.min.js:972:101)
at App.handleError
at ComponentNode.initiateRender
Caused by: TypeError: Failed to construct ‘BarcodeDetector’: Hint option provided, but is empty.
TypeError: Hint option provided, but is empty.
at BarcodeVideoScanner.
at async Promise.all(index 0)
at async ComponentNode.initiateRender

Regards.

Regain your privacy! Adopt /e/OS the deGoogled mobile OS and online services

what’s the exact appid of the App offering the barcode scanning? for the one’s I see I’d need a odoo instance login to test

Hi,

I don’t know how to check the App ID, but anyway you’re right: an odoo instance is required.

You can pull a trial server on Odoo.com, including on app. Choose Inventory, and the Barcode app will be available.

I’ve just pulled one, but life time si limited. If required I can create a user for you, but it will require a private communication channel.

BR

Yann

the odoo App uses the webview to do the scanning. /e/OS uses cromite as webview. cromite removes the BarcodeDetector APIs for Chrome. It seems to have a fallback js library (zxing) though that should then take over and make things work.

If that mdn web api compat table is right and you can just login with any broswer to the odoo instance, I’d probably try Opera for Android that ships the full Chrome APIs.

One could make the case in /e/OS bugtracker to exclude the patch that removes the barcode api.