In the latest version (24.6.20) if you go to Delivery Notes
tab, it will check if you have any sales invoices with inventory location set. If so, then you will see the following message:
Click on it and it will show list of delivery notes that can be created from your sales invoices.
Select them all
And then click Batch Create
button