コンテンツへスキップ
メニュー
この質問にフラグが付けられました

Hi

We are quit new to Odoo and working on setting up manufactering operations and steps. Our products consists of sub-parts which has unique serial numbers and in the Work Order, the subparts are set to be Register Consumed Components, so we can track the serial numbers in the final product.

This process, we will do with a barcode reader to speed up the process. After it has been scanned, the user needs to press Validate to go to the next step.

I would like to make that process easier (so the user should not need to click the Validate button).

My thoughts are:


  • Use the barcode scanner to scan a "Validate" command. When I try this, I get an error message saying that the O-BTN.Validate is not a known command. Is it possible to modify the Work Order View so the Validate button is associated with the O-BTN.Validate command?
  • Add a USB Footswitch with the action assigned to Validate. Though I am unsure whether this can be done without the IOT module. In the Odoo docs, it says that the button should be linked in the Work Center/IOT, but without the IOT module, this is not possible. So I don't know how to connect a USB footswitch directly to the PC and then assign the button to Validate in Odoo.

If someone has another/better solution, I am all ears :)

アバター
破棄
最善の回答

Hello, excuse my bad English,


The solution to configure the code reader they use, since they usually have a configuration code where you need to emulate the keyboard, since Odoo does not take it as COM input, that is why simulating the keyboard reads it without problem.


In addition to this you could use the command



odoo.__DEBUG__. services['web.core'].bus.trigger('barcode_scanned', "O-BTN.validate", $(".o_web_client")[0])


that emulates the behavior of the barcode reader, you should validate it with the settings of your physical barcode reader and configure it to emulate a keyboard.



video:

ht tps://watch. screencastify. com/v/YDS2fL1ckfqkPatlE3k6


Since I don't have enough karma, remove the link spaces so you can view the full video.



アバター
破棄
著作者

Hi, thank you for your suggestion. It makes good sense and a good solution. We have in the meantime changed our production flow so the final product is a kit instead of a manufacturing, so basically moved it from manufacturing to barcode app.

I will keep your sollution in the back of my head. We use barcode scanning in multiple places so maybe I can come up with something smart with configurering the barcode scanner for other Odoo usages.

最善の回答

You're diving into the world of Odoo, and it's kinda normal to bump into hiccups like this. Trying to streamline the workflow without extra clicks - smart move, but starting a validation command with the scanner is trickier than it looks, honestly. Odoo isn't too flexible with unknown barcode commands by default, which is why O-BTN.Validate isn’t recognized. Doesn't mean you're stuck though. There's a way around it, but you'd have to mess with the XML view and add some custom JS to catch the barcode events. Bit of a pain if you're not deep into Odoos's architecture.


Now, about the USB footswitch - yeah, you're sort of in the unknown without the IoT module, but it's not like impossible. You'd need a third-party key remapping tool to fake a 'Validate' keystroke. Kinda fiddly and maintainance can be tricky.


Honestly? Investing in an intuitive solution on mobile might be the wway to go. I had a similar problem once and went with a mobile automation platform like Cleverence. It gives your workers a seamless experience, tying barcode actions to ERP processes without extra hardware headaches. We used its low-code features to tweak workflows quickly. If you want to ease up on ops, checking out these solutions might really save you some major effort.

アバター
破棄
関連投稿 返信 ビュー 活動
1
9月 24
2488
1
8月 24
2483
1
5月 23
2399
1
1月 23
3435
3
1月 23
11387