Odoo Help


Scan Barcode in the normal search box with tab button is incomplete

Anass Ahmed
on 6/1/15, 6:50 AM 885 views

I've printed some barcodes in Code128 and tried to scan them with the normal Search Field and it worked normally at first.

Then I discovered that it wroks 3/4 times correctly and the rest are incomplete.

for example: I've sale order with name: SO000001 but when I scan it, I get only SO00000 and sometimes SO00 which is not accurate or complete.

I tried to put window.setTimout() in addons/web/static/src/js/search.js line 2393 (where the tab key triggered) but nothing had been changed!

BTW, when I try the scanner in plain text editor or terminal, it sends signal correctly every time with the tab key. I don't know why the tab key triggered without the full search statement.

Update: I have put console.log(self.get_search_string()) in TAB event and ENTER event before self.select_item(ev) and I found that get_search_string() retruns the correct and complete string and though that select_item(ev) happens after the console.log but it uses the incomplete version of get_search_string()!

For some reason it doesn't work in normal search field, got the same problem, but in PoS no problem at all. Woks just fine.

Dr Obx
on 6/1/15, 7:58 AM

Yes, I've noticed that. but we need to scan barcodes from sale and purchase orders because we need to speed up the warehouse movement in our company. we can't use the POS interface nor the Warehouse interface for those objects.

Vision Advanced Systems, Anass Ahmed
on 6/1/15, 8:08 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/1/15, 6:50 AM
Seen: 885 times
Last updated: 6/1/15, 10:13 AM