Barnyard (2006)
Barnyard (also known as Barnyard: The Original Party Animals) is a 2006 American computer-animated family comedy film, produced by Paramount Pictures and Nickelodeon Movies, directed by Steve Oedekerk (who was also the principal screenwriter), and produced by Steve Oedekerk and Paul Marshal. It was released on August 4, 2006.
More at Wikipedia.