In any action or proceeding for violation of the antitrust, discrimination in restraint of trade or unfair competition laws of this state, proof that the act complained of was done in compliance with the provisions of any code, agreement, license, rule or regulation in effect under the terms of the national industrial recovery act or the federal agricultural adjustment act, to which the defendant was a party at the time of such act, shall be a complete defense to such action or proceeding.
K.S.A. 50-157