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.
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- odoo-attendanceSkill
- odoo-crmSkill
- odoo-dashboardsSkill
- odoo-data-opsSkill
- odoo-devSkill
- odoo-documentsSkill
- odoo-field-serviceSkill
- odoo-financeSkill
- odoo-frontdeskSkill
- odoo-get-startedSkill
- odoo-helpdeskSkill
- odoo-hrSkill
- odoo-introspectorSkill
- odoo-inventorySkill
- odoo-knowledgeSkill
- odoo-mrpSkill
- odoo-plmSkill
- odoo-productsSkill
- odoo-projectsSkill
- odoo-purchasingSkill
- odoo-qualitySkill
- odoo-reportsSkill
- odoo-salesSkill
- odoo-securitySkill
- odoo-spreadsheetsSkill
- odoo-uxSkill
- odoo-websiteSkill
- odoo-worksheetsSkill
- odoo-workspaceSkill
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
- Very specific: line 13
Verification: If you need to interact with custom fields (e.g., x_studio_...) or if the user references fields not in your resource, you …
- Very specific: line 23
Address Types: Use the type field to distinguish between 'contact', 'invoice', 'delivery', and 'other'.
- Distinctive: line 28
If a match is found, update the existing record rather than creating a duplicate.
≈ “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.
Files
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.jsonresource 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 callinspect_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 aparent_idlinking them to a Company.
2. Functional Roles
A single res.partner record can represent multiple roles simultaneously.
- Customer/Vendor: Managed via the
customer_rankandvendor_rankfields (or boolean flags in older versions). - Address Types: Use the
typefield to distinguish between 'contact', 'invoice', 'delivery', and 'other'.
3. Search-First Policy
To prevent data fragmentation and duplication:
- ALWAYS perform a
search_readusing 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 commonres.partnerfields.
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
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.

