A county officer shall not absent himself from the state for more than thirty days without the consent of the board of supervisors.