Producing footwear made in one piece using a moulding technique, e.g. by injection moulding or casting having multilayered parts