Skip to Content

Reclaiming the Venture Vault: Rebuilding CoquiPortfolio

Stripping bloated marketplace addons down to the studs for a clean Odoo case-study and CRM engine.

Table of contents

No titles in the blog post

4 min read 32 views
Ready to read aloud (zero-cost browser voice)
QUICK REACTION
📚 SERIES · PART 4 OF 4 Sovereign Pilot Ecosystem
Operating six live Second-Brain & FinOps pilots in the open on Odoo
  1. Dogfooding in the Open: Running Six Live Second-Brain Pilots
  2. Inside Coqui LifeOS: Turning Odoo Into a Second Brain
  3. Killing the Hardcoded Resume With CoquiCareer on Odoo
  4. Reclaiming the Venture Vault: Rebuilding CoquiPortfolio (Reading now)
📌 TL;DR EXECUTIVE BRIEF

Rebuilt CoquiPortfolio as a self-hosted Odoo 20 case-study showcase and CRM lead engine with live project metrics and zero third-party SaaS lock-in.

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.

ATOMIC RE-NAMESPACE
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.

IDOR & ACCESS HARDENING
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.

MEDIA + HEADLESS JSON-RPC
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.

WAS THIS ARTICLE HELPFUL?
0% helpful
QUICK REACTION
SHARE THIS ARTICLE
Share ↗
EXECUTIVE ARCHITECTURE & ADVISORY View Interactive Resume (Ramon Rios Jr.) ↗
Hiring for a Senior / Principal Architect or Technical Leader?

Paste your Job Description to generate a tailored 2-page ATS resume, honest role alignment brief, and matched case studies in seconds.

Need Hands-On Architecture, Cloud, or AI Systems Delivery?

Book a focused architecture & strategy session covering migrations, infrastructure consolidation, or guardrailed AI pipelines.

Archive

Comments

Sign in to leave a comment
Killing the Hardcoded Resume With CoquiCareer on Odoo
Compiling raw field notes into quantified, ATS-proof 2-page PDF and DOCX executive packets on demand.