Australian food giant Goodman Fielder has bought New Zealand milk producer Independent Dairy Producers (IDP) for an undisclosed sum.