Well, this one needs a name but it's definitely one of those notorious German sleaze movie from the late 1960ies to early 1980ies. Maybe one of the Schulmädchenreports but not necessarily one of them.
An enraged teacher storms out of the classroom and whips the naughty schoolgirl in some sort of barn later? Makes no sense? Well, that's perfectly normal for this kind of movie.
Clip: https://sendvid.com/znwnfzho
It needs an upgrade in quality too