Regarding custom button creation

Regarding custom button creation

I have created custom button in sales order detailed view page for creating delivery order for the particular one, and the deluge script associated with it was successfully triggered but I don't know whether the record is created or not. It is not listed in the delivery challans/order page. why it is like that?