OMG... What happened to myself.. I didn't notice that you are trying to set the material field as optional..
It is not possible to make the field optional for Purchase order... Material is a mandatory field for PO creation with blank account assignment.
Can you create a PO without material and without account assignment category ?
Either you need to enter account assignment category or you need to enter material..
It is standard behavior..