Purchase Invoice saving but not submitting (ERPNext V 13)

On saving a purchase invoice it saves and gets listed as a draft, but on clicking submit it makes a sound and nothing happens (doesn’t even pop-up an error)

Solved. It started working once I ticked on “custom” box in purchase invoice doctype customization.