How can i force the user to select a project when creating an invoice ?

How can i force the user to select a project when creating an invoice ?

Hello 
 I tried all the ways that i know , but no way is able to stop creating an invoice without project.