“Workaholics” actor Adam Devine is in negotiations to join Zac Efron in the 20th Century Fox and Chernin comedy “Mike and Dave Need Wedding Dates.”

Jake Szymanski is on board to direct, with Peter Chernin, David Ready and Jenno Topping producing for Chernin Entertainment, along with Jonathan Levine. Andrew J. Cohen and Brendan O’Brien penned the script, the story of two brothers who place an online ad to find dates for a wedding and the ad goes viral.

Daria Cercek is overseeing the project for Fox.

While Efron was a top choice to play the role of Dave in the pic, the studio felt the need to test actors for Efron’s co-star in hopes of finding someone that had the right chemistry with the “Neighbors” star and had been reading actors for the last couple of weeks to find the right match.

Insiders say it was Devine’s mix of wit and raunchiness in his delivery that ended up winning him the role.

Devine has been rising in the ranks of up-and-coming comedic stars and this role could help him get to the next level. Besides his two series on Comedy Central — cult hit “Workaholics,” currently in its fifth season, and “Adam Devine’s House Party” — he can also be seen next reprising his scene-stealing role of Bumper in Universal’s “Pitch Perfect 2.” He will also appear in “The Intern” for Warner Bros., to be released in September, and “The Final Girls” for Sony, bowing in March.

He is repped by WME and Avalon Management.