You might want to have the dog checked by the vet to rule out any medical problems first. If that checks out ok, try an animal behavior trainer.

It is a slight possibility that your son's urine could be enticing the dog to also urinate in the house (I have seen a few rare cases of that at work).

Either way usually the first step is to rule out a medical problem first.

Good luck.