>>39009874By both parents. Doesn't need to be the male one.
But to be passed it needs to be either a TM or an egg move.
If you tell me what exactly you're trying to achieve, I might help better.
BTW don't forget that breeding works differently in general, for example you lose both parents.