Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

drivethru-payable-matching

БесплатноЗапускает вложенные скриптыНе проверен

Payable matching for BaconCo — reconcile vendor documents in Odoo's Documents app against their purchase orders and correct incorrect PO line pricing. Use for…

zmtuckerот zmtucker1 630 установок в других каталогах

Об этом скилле

Payable matching (Purchasing folder → purchase orders)

Reconcile vendor documents against their purchase orders and fix PO line pricing. A vendor document is an order confirmation, shipment acknowledgement, or invoice filed in the Documents app's Purchasing folder; its authority for what BaconCo will be billed is the vendor's own numbers.

The task, per document: read it → extract the PO number, line items, and unit prices → find the PO in Odoo → compare line by line → correct any wrong price_unit → post a "checked" note on the PO → file the document into Matched (reconciled) or Questions (needs a human). Nothing stays in the inbox.

This changes live financial data (PO prices, chatter, activities). The standing request "review the Purchasing folder and fix the pricing" authorizes the corrections and the "checked" notes; still, only correct a line when the vendor document unambiguously supports it — when in doubt, route it to Questions rather than guessing.

Always use Log note, never Send message

Every annotation you leave on a PO or a document — the "checked" note, a partial-shipment note, a question, any comment — MUST be an internal Log note, never a Send message. In Odoo chatter, "Send message" notifies the record's followers and can email the vendor or customer; a Log note stays internal. These vendor documents are BaconCo's own AP working notes — nothing here should ever leave Odoo as an email.

The helper's matched / questions commands and the po_post_message / documents_post_message MCP tools post internal log notes — use them. Do not reach for any "send message", email, or notify-followers path when annotating a PO or document, and if a tool ever exposes a note-vs-message choice, always choose the internal note.

How you reach Odoo (runtime-aware — read this first)

This skill drives the same Odoo drivethru_mcp MCP as drivethru-odoo, and ODOO_MCP_URL / ODOO_MCP_TOKEN are already configured. Never say you "can't reach Odoo" or "don't have the tools in this thread" and guess instead — call a tool, or state the exact call you tried and the error you got.

  • Native / callable MCP tools (preferred, no shell needed). If the Odoo tools are attached to you natively, call them directly — e.g. documents_list_folders {"name": "Purchasing"}, whose document_count is how many documents are waiting to be matched. They may be deferred — if your runtime lazy-loads tools, search your tools for documents_search, ap_search_purchase_orders, ap_update_po_lines, po_post_message, po_get_messages, etc. and load them before calling. "I don't see them yet" is not "I don't have them."
  • Shell (scripts/paymatch.py) — only if you have a shell. The helper below is a context-economy optimization (bulk PDF text extraction, one call per folder); prefer it for large batches when a shell is available.
  • Not connected at all? Attaching the drivethru_mcp MCP natively — or giving the agent a shell — is an operator step; env vars alone don't attach the tools. See drivethru-odoo's Operator setup and Troubleshooting sections before concluding you can't reach Odoo.

The engine: scripts/paymatch.py (keep the work out of context)

Reading PDFs is the expensive part. documents_get returns each file as base64, and a multimodal PDF reader adds a page image — both dwarf the few hundred characters of text that matter. Do that per file across a folder, many times a day, and the context window fills with bytes and renders (and the token bill balloons). So never loop documents_get/a PDF reader over the folder. Use the helper, which does the heavy, deterministic work locally and returns only what the model needs.

# 1. Read the whole folder as TEXT (no base64, no render) — ONE call
python3 scripts/paymatch.py extract '{"folder": "Purchasing"}'

# 1a. Scheduled batch? Narrow the extraction instead of pulling every file:
#     document_ids = only these docs; name_excludes = drop by name substring
#     (case-insensitive); max_docs = cap the batch (extras reported as
#     skipped_beyond_max_docs). folder still scopes the listing.
python3 scripts/paymatch.py extract '{"folder": "Purchasing", "document_ids": [7617, 7536]}'
python3 scripts/paymatch.py extract '{"folder": "Purchasing", "name_excludes": ["sanmar"], "max_docs": 8}'

# 1b. Any document flagged needs_vision (scanned or custom-encoded) → render its
#     page(s) to PNG (+ OCR if tesseract is present), then read the image(s)
python3 scripts/paymatch.py render '{"document_id": 485}'
#
# Each extracted document also carries `po_candidates` (the distinct PO refs in
# its text, each canonicalized to Odoo's `P<digits>` name — so a bare "PO 14594"
# and a "P14594" token both surface as `P14594`) and `multi_invoice` (true when
# it holds several invoices — >1 distinct PO, or >1 "Invoice #/No/Number"
# header). On m
Полный SKILL.md на ClawHub

Установить drivethru-payable-matching в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл drivethru-payable-matching?

Payable matching for BaconCo — reconcile vendor documents in Odoo's Documents app against their purchase orders and correct incorrect PO line pricing. Use for requests like "check the Purchasing folder against the POs and fix the pricing", "match the vendor invoice / order confirmation / acknowledgement to its PO", "AP price matching / invoice-to-PO matching / three-way match", "reconcile the vendor documents and mark the POs checked", or "go through the Purchasing folder". The flow: read every document in a Documents-app folder (extracting text out-of-context so large batches don't bloat the context window — falling back to a page render + OCR/vision for scanned or custom-encoded PDFs that won't extract as text), pull the PO number / line items / unit prices from each, compare to the purchase order line by line, correct any wrong `price_unit`, post a "checked" log note on the PO (internal, never a "Send message"), and FILE every document into the `Matched` or `Questions` subfolder — escalating genuine questions to a reviewer (default Zach Tucker). Also runs the buying-group payables flow: pull Sports Inc invoices from the SportsLink API (via the `sportsinc-sportslink` adapter), reconcile each to its PO, correct price variances, create the vendor bill and — when the bill total matches the invoice within tolerance — POST it, leaving any mismatch in draft for a human ("get the Sports Inc invoices and bill them", "match the SI invoices to POs and post the payables", "match the vendor invoice and post the bill if it matches"). Handles the multi-shipment case where one PO returns several Sports Inc invoices, splitting it into one vendor bill per shipment via `account.move.line` edits (the `ap_*_bill_line(s)` tools). Runs at volume on a low-cost model. Driven by the Odoo `drivethru_mcp` MCP server; complements the broader `drivethru-odoo` skill.

Как установить скилл drivethru-payable-matching?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл drivethru-payable-matching запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить drivethru-payable-matching с