This module will add a functionality to allow barcode generation of EAN13 for products. You can do configuration at product or category or company level.
ACS Product Barcode Generator