You can create this setup on both the server and client sides.
Here’s how it works: When a Sales Order is submitted, a client script is triggered to automatically submit the corresponding Delivery Note. You’ll need to write a script to make this happen, adjusting it according to your specific scenario and mapping the fields accordingly.
Also, check out this link for more details and an example of a server script: