maybe bug in 3.6.1

When add product with reference godzi100 with barcode all goes ok,
but when add next product with reference godzi200 and the same barcode value that have previous product dolibarr show error:

when check entries there no product with reference godzi200

Maybe someone know how to fix it?

I figured out that dolibarr don’t like product with same barcode value.

When add Ref.: godzi100; godzhi 200 etc with different barcode value all ar ok, but when need to add same barcode value but diferent weight then problem exist.

In new dolibarr 3.6.2 problem or function are the same. Two diferent products can’t use same barcode value, but in my case i need it.

How can i tweak dolibarr to suport diferent product names and with same barcode values?