Barry Douglas will become the first Scottish player to play in the Polish top division following his move to Lech Poznan from Dundee United.