A quick-coupling device for a milking module of a milking system for milking dairy animals that forms a releasable and re-establishable connection between the milking module and a milk pipe and includes a valve mechanism for opening and closing a feeding port and a discharge port using a number of articulated clamps.