The supermarket says a sniff test is a better guide to quality - and could stop millions of pints of waste.