Skip to Content
Menu
This question has been flagged
5 Replies
4010 Views

Hello community,

What are the steps to reproduce my issue?
Error reading GS1 Datamatrix barcodes in the Barcode app

What is the current behavior that I observe?
In the Inventory settings with the option "Barcode Scanner" active and the barcode nomenclature set to "Default GS1 Nomenclature" selected when I try to scan a datamatrix in barcode operations if the datamatrix has a group separator the app returns an error.

What would be your expected behavior in this case?
I get the "You are expected to scan one or more products." error despite the fact that the product is registered with the barcode that follows the "01" prefix.
The expected result is the identification of the product and creation of the serial number and expiration date that does not occur.


Avatar
Discard
Best Answer

Hello Bruno! 

It should work. Pay attention that your product barcode should contain 14 digits and the last digit is a check digit. Here, an example of GS1 barcode you could use for your testing: 01354756923423431722053021532689093. If I add the brackets to make it easier to read, you have (01)35475692342343(17)220530(21)532689093. So, you have the product barcode followed by the expiry date and the serial number. 

In V15, Odoo can read the expiry date but the info is not filled in the system. It is fixed in V16. 

Avatar
Discard
Best Answer

Hello Bruno,

Were you able to read the GS1 barcode? I have the same problem.

I am trying to read a datamatrix barcode which consists of product code+Expiry+Batch number. I have activated the barcodes in Odoo and selected GS1 nomenclature in the settings. When I try to scan in the barcode app it gives me the same error "You are expected to scan one or more products."

I have seen the 2022 Odoo demo it should work. https://youtube.com/clip/Ugkx79xFnaU-oFbtnL67gMMWq9xLLGAXBeZk 

Can anyone tell how to configure Odoo properly so GS1 barcodes work?

Avatar
Discard
Author

Hello Anas,

So, the only way I make it work was by redo the native app of Barcode.
I had a collegue that created a GS1 nomenclature custom, and had to change the native code of Odoo.
In the demo it works, and with a demo datamatrix it also works, but then with a real one I tried and failed to make it work without some code review.

Thanks Bruno for the comment. However I succeded to make it work without any code change. It seems that Odoo is able to identify GS1 barcode when the code is scanned without the "()" characters. For example, when I scan my Barcode in Excel is displays as follows:
(01)53582910080355(17)210415(10)9S444

Odoo doesn't recognize it and give the error "You are expected to scan one or more products."

But when I remove the brackets from the barcode to read as below
015358291008035517210415109S444
Odoo recognizes it and automatically selects the correct product and add the batch number and expiry date.

So now I only need to figure out how to stop transmitting the () brackets in the scan. an ideas?

I succeeded in configuring Odoo to identify the barcode including the brackets "()".
In developer mode under GS1 nomenclature, I added the () in the expression and it works like a charm now. (This is in v16 so I think same would work in v15)

The original expression in the GS1 nomenclature was
(01)(\d{14})
I changed it to
(\(01\))(\d{14})

Did the same for all the application identifiers:
(\(17\))(\d{6})
(\(10\))([!"%-/0-9:-?A-Z_a-z]{0,20})
(\(21\))([!"%-/0-9:-?A-Z_a-z]{0,20})

Best Answer

Hi, I have the same problem... ODOO seems to ba able to read the first field in the optical code. I have created 4 codes, one for the item, one for the lot, one for the expiration date and one for the quantity and all is ok; but if I try to use one single code (barcode o datamatrix is the same) ODOO return an error and don't read.

My question is... GS1-128 with multi-fields is supported by ODOO withou customizations?

Avatar
Discard
Best Answer

Hello to everyone!!has anyone manage to do an internal transfer using a GS1 barcode? 

It seems that scanning the barcode it recognizes only the product code and not the lot number. 

Avatar
Discard
Best Answer

Hi everyone,

Amazing explanations in the comments. We actually are able to scan the GTIN with round brackets now. 

Unfortunately, the data matrix we are trying to use for GS1 is GTIN + Expiration date + Lot during the receipt.

In our instance, the barcode reader pops an error when scanning the data matrix (check the video).

https://youtube.com/shorts/eN9qOm5nt5I?feature=share

Avatar
Discard
Author

You have to modify Odoo.
My project was in Pharma, so GTIN + Expiration date + Lot
Check the V16 I think is fixed there.
We end up making a module to teach Odoo how to read a datamatrix.
Also check OCA, I think they have a external solution for this.

Ho Bruno,
Thank you for your reply!
Yes, in v16 Fabien did a demo using the system... so it should be working. We reported back to Odoo and will now wait for their answer.
Thank you again!

Related Posts Replies Views Activity
3
Aug 24
4365
0
Feb 24
1084
1
Nov 23
1199
0
Sep 23
968
1
Jun 23
2320