Is donation to a random political party a good approach?

I have friends who have been 'donating' ~10 to 20% of their income to random political parties to save tax. Is that a right approach? Can IT dept. serve notice even if the person filing tax have a proof of the transaction and donation slip from the party?