agentleFS
actinon-comactinon-com/brass-monkey/skills/odoo-relations/SKILL.md

odoo-relations

Skill2 starsChanged 3 months agoMITView on GitHub

MANDATORY for Contacts, Customers, and Vendors (res.partner). Expertise in Odoo's central directory and relationship hierarchies.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Verification: If you need to interact with custom fields (e.g., x_studio_...) or if the user references fields not in your resource, you …

    line 13
  2. Very specific:

    Address Types: Use the type field to distinguish between 'contact', 'invoice', 'delivery', and 'other'.

    line 23
  3. Distinctive:

    If a match is found, update the existing record rather than creating a duplicate.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: Odoo Relations (Partners & Contacts)

This skill provides the agent with the expertise required to manage the res.partner ecosystem, which is the foundational directory for all people and organizations in Odoo.

Core Mandates

1. Snapshot Awareness (Dynamic Discovery)

  • Mandate: The partner-fields.json resource is a snapshot of common Odoo fields. It is NOT exhaustive.
  • Verification: If you need to interact with custom fields (e.g., x_studio_...) or if the user references fields not in your resource, you MUST call inspect_model(model: 'res.partner') to retrieve the current, live schema.

2. Hierarchy & "is_company"

The most critical field in this domain is is_company.

  • Companies: Set is_company: true. These act as "Parent" records.
  • Individuals: Set is_company: false. These should typically have a parent_id linking them to a Company.

2. Functional Roles

A single res.partner record can represent multiple roles simultaneously.

  • Customer/Vendor: Managed via the customer_rank and vendor_rank fields (or boolean flags in older versions).
  • Address Types: Use the type field to distinguish between 'contact', 'invoice', 'delivery', and 'other'.

3. Search-First Policy

To prevent data fragmentation and duplication:

  • ALWAYS perform a search_read using the email address or VAT number before creating a new partner.
  • If a match is found, update the existing record rather than creating a duplicate.

4. Cross-Module Navigation

Partners are the "anchors" for almost every other Odoo module:

  • Sales: sale.order.partner_id
  • Finance: account.move.partner_id
  • CRM: crm.lead.partner_id
  • Support: helpdesk.ticket.partner_id

Available Resources

  • partner-logic.md: Deep-dive into hierarchies, address inheritance, and functional logic.
  • partner-fields.json: Dense technical map of common res.partner fields.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.