GO:0018455:   alcohol dehydrogenase [NAD(P)+] activity
Catalysis of the reaction: an alcohol + NAD(P)+ = an aldehyde + NAD(P)H + H+.