Try this: https://www.craftylittlegnome.com/whole-house-smells-like-dog-urine/
You would have to use a pet enzyme cleaner, you can buy Nature's Miracle at any pet center. I prefer the tablets that you mix with warm water as they are more effective, I have used Fizzon and Jackson Galaxy Pet Stain & Odor Remover. I buy on Amazon.
Pet stores carry a product called Nature's Miracle-an enzymatic product that works well.
Try Murphys oil soap.It is gentle,effective for most wood,and leaves a nice clean wood smell.
It may not work,but always try gentle first, and then progress if that does not work.It is also good for the wood.Available anywhere,inexpensive.