How to add custom button to the list page of custom doctype

To add a button to List view try this method highlighted in the post