"ACS Product Internal Reference Generator"
This module will add a functionality to allow Internal Reference generation for products. You can do configuration at product or category or company level.