We give necessary and sufficient conditions for the boundedness of generalized fractional integral and maximal operators on Orlicz–Morrey and weak Orlicz–Morrey spaces. To do this, we prove the weak–weak type modular inequality of the Hardy–Littlewood maximal operator with respect to the Young function. Orlicz–Morrey spaces contain Lp$L^p$ spaces (1≤p≤∞$1\le p\le \infty$), Orlicz spaces, and generalized Morrey spaces as special cases. Hence, we get necessary and sufficient conditions on these function spaces as corollaries.