Generate auto name for sales order as random digits only without letters

It’s doable. By combining @clarkej random python library and the autoname function you won’t have to do any checking for duplicate names, though you’ll need to error handle it I think.

Here’s how I approached it - take out the business logic and drop in the randomization function.