In any civil or criminal action or proceeding for violation of any of the following, proof that the act which is complained of was done in compliance with the provisions of this chapter or a marketing order which is issued pursuant to, and in furtherance of the purposes and provisions of this chapter, is a complete defense to such action or proceeding:
(a) The Cartwright Act, Chapter 2 (commencing with Section 16700), Part 2, Division 7 of the Business and Professions Code.
(b) The Unfair Practices Act, Chapter 4 (commencing with Section 17000), Part 2, Division 7 of the Business and Professions Code.
(c) The Fair Trade Act, Chapter 3 (commencing with Section 16900), Part 2, Division 7 of the Business and Professions Code.
(d) Any rule of statutory or common law against monopolies or combinations in restraint of trade.
(Enacted by Stats. 1967, Ch. 15.)