Recall that, if $R$ is a commutative ring, then a suitably finite $R$-module $M$ is projective if and only if the localization $M_\mathfrak{m}$ is a direct sum of finitely many copies of $R_\mathfrak{m}$ for every maximal ideal $\mathfrak{m}\subseteq R$.
Consider the following alternate condition for an $R$-module $M$: each $M_\mathfrak{m}$ is a direct sum of finitely many copies of $R_\mathfrak{m}$ and finitely many copies of $\mathfrak{m}$.
Does this type of module have a global characterization or a name?