From 227ecb13a5133da41ac4283358ce5706c3304dd6 Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 29 Apr 2026 14:32:30 -0500 Subject: [PATCH] fix: remove invalid fields 'mobile' (res.partner) and 'probability' (crm.stage) for Odoo V18 --- server/odoo_mcp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/odoo_mcp.py b/server/odoo_mcp.py index 9c098ea..8698aa0 100644 --- a/server/odoo_mcp.py +++ b/server/odoo_mcp.py @@ -362,7 +362,7 @@ def search_contacts(query: str = "", is_company: bool = None, limit: int = 20) - if is_company is not None: domain.append(["is_company", "=", is_company]) return _search_read("res.partner", domain, - ["id", "name", "email", "phone", "mobile", "is_company", + ["id", "name", "email", "phone", "is_company", "street", "city", "state_id", "country_id", "website"], limit=limit, order="name asc") @@ -495,7 +495,7 @@ def update_crm_lead(lead_id: int, stage_id: int = None, probability: float = Non @mcp.tool() def list_crm_stages() -> list: """List all CRM pipeline stages with their IDs and names.""" - return _search_read("crm.stage", [], ["id", "name", "sequence", "probability"], + return _search_read("crm.stage", [], ["id", "name", "sequence"], limit=50, order="sequence asc")