Cobra · Mission architect for Claude Code
Claude Code mission brief: D&M France invoice verification
Context
14 D&M France PDF invoices imported as Odoo drafts via native AI. The drafts exist but aren't reliable: quantities, prices, DEEE and early payment discounts may be wrong or missing, and the link to POs isn't guaranteed.
What was built
- Brief
MISSION_DM_FRANCE_FACTURES.mdready to hand to Claude Code - Documented XML-RPC queries: drafts, lines, correction, PO lookup
- PDF ↔ draft matching logic via supplier reference
- DEEE strategy (look for existing product) and early payment discount strategy (look for account on validated D&M invoices)
- Safety rules: never validate, log everything, flag doubts rather than guess
What was difficult
- PO matching is the weakest link: Odoo AI doesn't do it reliably — fallback needed (PO number → date/amount → product references)
- DEEE and early payment discounts often absent from AI drafts (variable format)
Stack
Python, XML-RPC Odoo, Claude Code, Odoo 18 (account.move, account.move.line, purchase.order, product.product).
What this illustrates
Claude as a mission architect for Claude Code: no direct execution without an Odoo MCP, but producing a structured, complete and safe brief that lets Claude Code work autonomously on a sensitive accounting task with clear guardrails.