Auto generate unique product code if not provided

http://manage.dimagi.com/default.asp?121783