Comedy movie scene eating pizza in school at night

Hi there, I’m looking for a movie I watched years ago because i want to show it to a friend.
All I remember is that it is a comedy movie, the characters go to high school and I just remember this one scene were they broke in their school at night to hang out eating pizza. The movie definitely came out before 2019 and i think after 2010.
Hope someone knows what I’m talking about

I don’t remember the pizza bit, but “palo alto, ca”?