if use standard data import, simply fill the the number into ID field, the ID field has highest priority which will prevent autoname by naming series.
if create sales order via api, you can create before_insert server script with code like below
doc.name = f"{number}"
doc.flags.name_set = True