So I've owned a Mini Poodle called Homer for 6 years. I bought him from a pet shop (sorry pet shop haters). He didn't beheave well but at least he didn't pee inside the house (I live with my parents in a pretty big house) so my parents weren't that mad with it. 
But a year and a half ago, I moved homes to another house and since then things went from bad to worse. 

He started peeing inside the house, started barking at literally everything that moved outside (he absolutely hates wheels). And bark while we eat. One day, we opened the door to receive some guests and Homer ran through the door to chase some truck that was on the road. When he approached the truck, he got under the wheel which made  him break his hip. He was in pain for about a month and after 6 months he was the same Homer as before. He started peeing inside and barking all the time. 

My father got fed up with him and told me that he was going to give it away to another family unless he beheaves well. He gave me a 6 weeks to train it so he stops barking. /r/Dogs , I need your help. What can I do to make my dog stop barking and peeing inside the house?
user
My father is going to give away my dog for his awful behavior for barking and
assistant
So I've owned a Mini Poodle called Homer for 6 years. I bought him from a pet shop (sorry pet shop haters). He didn't beheave well but at least he didn't pee inside the house (I live with my parents in a pretty big house) so my parents weren't that mad with it. 
But a year and a half ago, I moved homes to another house and since then things went from bad to worse. 

He started peeing inside the house, started barking at literally everything that moved outside (he absolutely hates wheels). And bark while we eat. One day, we opened the door to receive some guests and Homer ran through the door to chase some truck that was on the road. When he approached the truck, he got under the wheel which made  him break his hip. He was in pain for about a month and after 6 months he was the same Homer as before. He started peeing inside and barking all the time. 

My father got fed up with him and told me that he was going to give it away to another family unless he beheaves well. He gave me a 6 weeks to train it so he stops barking. /r/Dogs , I need your help. What can I do to make my dog stop barking and peeing inside the house?
user
my dog started peeing inside the house and barking all the time and my dad gave
assistant