Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
935 Näkymät

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

Avatar
Hylkää
Tekijä Paras vastaus

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

Avatar
Hylkää
Paras vastaus

Hi,

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


barcode = "thisisalongstringthatyouwanttoshorten"

product_code = barcode[-11:]


Hope it helps

Avatar
Hylkää
Tekijä

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?

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
syysk. 24
1029
0
kesäk. 24
1946
1
jouluk. 23
1443
3
kesäk. 23
3187
0
heinäk. 21
18