Dogs don't have an "indoor vs. outdoor" preference. They just don't like to go in their homes.
They instead prefer to go where them (and you!) won´t have to interact with the excretion. In the case of domesticated dogs, this means going outside.
Your dog may have anxiety. This isn't your fault at all. My dog has it too.
Calm her down. Choose preferably chewier treats that take her a while to eat
Hold the treat in front of her when she gets panicked or anxious. Allow her to sniff it and when she turns her attention away from the scene reward her with the treat as you're walking.
Give her an area in ...