If product variants are enabled, it will not be possible to set barcodes for that product.
When setting product variants, different variants of the same product cannot have the same barcode set.
When I used to work in a clothing store, the same style of clothing used the same barcode, and different sizes were differentiated using internal references.
I don't quite understand why this design, different variants cannot use the same barcode.
odoo17.0
Perhaps someone will talk about how this design is convenient to use.