Which evidence has priority – common practise or legal document?
A signed legal document not only has priority, it is binding. Common practice is evidence merely of common practice (if you see what i mean). Common practice can aid interpretation of a document; but the legal document (by which I assume you mean a signed agreement or the like) has evidential superiority over everything – including a declaration by the signatories that they did not intend to agree that.