You can implement a custom OrderSaveHandler in a module that auto generates and sets the accession number.