Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
906 Vizualizări

I have a barcode made of 31 characters, I need to read only the last 11 that indicate the product I want to scan, how can I do that? I have tried setting up new rules but there is not much documentation on barcode patterns

Thanks to all

Imagine profil
Abandonează
Autor Cel mai bun răspuns

is it possible to make the GS1 Barcode (product) read a code like this 3-DGAI0800-?

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

You can do this using Python. below is an example of this.


barcode = "thisisalongstringthatyouwanttoshorten"

product_code = barcode[-11:]


Hope it helps

Imagine profil
Abandonează
Autor

hello,
thanks for the reply, is there any way to edit the code on an online version of odoo?
otherwise as a solution i am trying to use GS1 nomenclature, question, are GS1 pattern rules editable at will?

Related Posts Răspunsuri Vizualizări Activitate
0
sept. 24
1002
0
iun. 24
1910
1
dec. 23
1400
3
iun. 23
3155
0
iul. 21
18