
My Jozi (now 14 3/4 with cast iron bladder) used to do this when my Dad visited.
We found the trick was to say quick outside wee wee's, and have her wee before greeting him.
She grew out of it. She to was about 9 1/2 months, but can't remember how long it took as we just had her go outside as soon as they came to the door, and then she did it herself, Granddad comes go and pee.
Can't remember when it stopped being a conditioned response.