Victoria's chief magistrate has ordered that fraud police be given access to legal documents relating to Julia Gillard's ex-boyfriend Bruce Wilson.

In a court order released to the media, the former Australian Workers Union (AWU) secretary has been accused of taking part in a fraud or other offence over a so-called slush fund that was set up in the 1990s.

Chief Magistrate Peter Lauritsen says Mr Wilson, who was romantically involved with Ms Gillard at the time, had deceived the Theiss company.

He said the company believed it was paying for a service, but that the association involving Mr Wilson had bought a home with some of the Theiss payments.

"Only he knows what happened to the rest," Mr Lauristen said in the judgment.

The order says that police are investigating Mr Wilson because of matters relating to four types of offence.

He is accused of obtaining property by deception, receiving secret commissions, making and using false documents, and conspiracy to cheat and defraud.

Ms Gillard provided legal advice to Mr Wilson in her then role as a solicitor for lawyers Slater and Gordon.

She has consistently denied any wrongdoing over the matter, saying she was under the impression the fund would be used for legitimate purposes to re-elect union officials.