Let $M$ be an $R$-module ($R$ commutative with unity) and suppose that given $\mathfrak{p}\subset R$ a prime ideal we have $M_{\mathfrak{p}}\cong R_{\mathfrak{p}}^n$.
Is then true that we can find an element $f \in R$ such that $M_f \cong R^n[f^{-1}]$?