Often you shouldn't replace it, and we'll say so. If the parts of Odoo you use sit close to standard, the honest project is stripping the customizations back out and keeping the platform.
When replacing is right, it's almost never all of it at once. Take the part of the business Odoo fits worst, usually the operational core that attracted the most custom code, and build that as its own system on your own database while Odoo keeps doing the accounting. That's the pattern that works.
Your data already sits in PostgreSQL, which makes this materially easier than leaving a closed vendor. The external API gives full read access to every model, so the migration becomes a defined engineering problem. Nobody has to negotiate over export formats.
What you end up owning is a system with your objects in it, named the way your team names them, with rules that match how you actually work. No per user per app line at renewal, no module list, and no version whose end of support sets your roadmap for you.