I tried to solve the problem in differents ways but none of them have worked.
Here is how the model should look.
Here is the armature.
And here is whem i aplied the automatic weights.
Also, the rigging is all mess up. Nothing is well painted in the weight painting mode. Is it possible to exclude a part of the mesh to be automatically painted?
I hope you cand help me. Here is the blend file. Thanks!
https://mega.nz/#!YMoCgIzb!KwW2cxOzXMKYbpLeZ38YT1D882gm4qwYJ2zVeAjcOmA