Australia's largest supermarkets, Woolworths Ltd and Coles, have signed up to a new code of conduct governing food and grocery supplier relationships.