Module to generate product code automatically once a product class is set on the product.