Skip to Content
Menu
This question has been flagged

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 :)

Avatar
Discard
Best Answer

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.



Avatar
Discard
Author

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.

Related Posts Replies Views Activity
1
Sep 24
911
1
Aug 24
1179
1
May 23
1575
1
Jan 23
2257
3
Jan 23
9988