Sometimes the ugliest technical debt in your entire infrastructure sits quietly inside an addon folder you installed two years ago and kept patching piece by piece. That is exactly what stared back at me when I audited my website project showcase at /projects: I had rewritten its controllers, patched an IDOR authorization bypass, built drag-and-drop sequence ordering, wired a modal CRM lead form, added batch image compression, and ported it to Odoo, yet the directory name, manifest metadata, XML-IDs, CSS hooks, README, and description graphics still belonged to the original third-party vendor package.
Leaving half-reclaimed third-party scaffolding sitting inside a sovereign Second Brain stack felt sloppy and half-baked. When I build inside RamonRios.NET, I want full clarity over every dependency, security rule, and line of CSS. So instead of kicking the cleanup down the road again, I performed a complete first-party takeover, replacing every vendor artifact with CoquiPortfolio (odoo_project_portfolio_coquicloud v20.0.3.0.0) in one atomic, zero-data-loss migration.
Model #54 — Architectural Sovereignty (Purging Vendor Bloat & Owning the Stack): Third-party marketplace modules are convenient starting scaffolds, never permanent homes. Once your business rules, security posture, and UI overtake the original seed, execute a clean-room takeover—preserving production database records while purging opaque vendor debt.
Why Half-Patched Marketplace Addons Rot Over Time
When you keep stacking customizations around an external module instead of claiming crisp technical ownership, subtle traps accumulate across PostgreSQL and your Git tree. Dead vendor description images weigh down backups. Stale ir_model_data identifiers tangle with custom QWeb overrides. Legacy Odoo 16/18 ir.model.access.csv permissions drift out of alignment with Odoo 20's unified ir.access matrix. Worse, anyone inspecting the HTML source or backend app switcher still sees misleading vendor identifiers for code you heavily re-engineered.
You don't truly own a system until every table reference, XML-ID, security policy, and README accurately describes the software running in production—not an outdated zip file you imported years ago.
Executing a Zero-Data-Loss Takeover Across Production Tables
Uninstalling the legacy module and reinstalling from scratch was out of the question. My Venture Vault already held 15 curated production case studies across multiple categories alongside 86 compressed gallery images linked across this blog and my CoquiCareer executive profile. Dropping tables would have wiped years of curation.
Instead, I wrote an atomic transactional cutover script in Python + PostgreSQL 16: back up the live folder and metadata SQL first, strip vendor junk directories and mismatched asset files, refactor every XML-ID, stylesheet class, ir.config_parameter namespace, and controller file into odoo_project_portfolio_coquicloud, re-namespace ir_model_data rows inside a single SQL transaction while the container paused briefly, and run a clean odoo -u upgrade.
15 Ventures, 0 Drops
Re-mapped 105+ XML-IDs, six settings keys, and frontend view inheritance cleanly inside one SQL transaction—preserving all 15 published case studies and 86 gallery slides untouched.
Zero Draft Leakage
Unified Odoo ir.access permissions and strict route guards ensure unpublished projects return crisp 404 Not Found responses rather than exposing internal notes by ID guessing.
WebP + CRM + RAG Ready
Automatic Pillow WebP compression shrinks gallery screenshots, origin auto-tagging labels live hosts and GitHub repos, and POST /api/portfolio feeds Ask My Architecture cleanly.
Wiring Case Studies Directly Back Into the Second Brain
Now CoquiPortfolio fits cleanly into the rest of my live Pilot architecture instead of sticking out as an awkward adopted cousin. When I ship a new sandbox template on Sovereign Launchpad or monitor another service inside Sovereign Cloud Pulse, logging the venture inside CoquiPortfolio normalizes relative links, tags its origin domain automatically, renders up to three embedded walkthrough videos alongside Schema.org CreativeWork structured metadata, and routes prospect inquiries directly into Coqui LifeOS CRM follow-ups.
What Broke Under Live Pilot Testing: Odoo Attachment Storage
Refactoring third-party Odoo code into Odoo 20 also caught a subtle trap hiding in attachment pipelines. In legacy Odoo XML-RPC scripts, sending base64 payloads via the datas field stored binary files smoothly into the filestore. In Odoo, IrAttachment._check_contents silently drops datas (Use raw, datas has been removed) and requires passing raw bytes or base64 strings directly into the raw field instead—a bug that quietly served placeholder images on my very first Pilot push until our post-publish verification caught zero-byte checksums immediately.
And when I verified the upgrade after restarting Odoo, the numbers told the whole story: zero registry tracebacks in server logs, zero residual vendor identifiers across 183KB of rendered HTML, and clean HTTP 200 responses across every case-study route and headless API call. Sometimes ownership just means taking the screwdriver to the inherited box until every part inside truly belongs to the machine you run.