fix: remove invalid fields 'mobile' (res.partner) and 'probability' (crm.stage) for Odoo V18
This commit is contained in:
+2
-2
@@ -362,7 +362,7 @@ def search_contacts(query: str = "", is_company: bool = None, limit: int = 20) -
|
|||||||
if is_company is not None:
|
if is_company is not None:
|
||||||
domain.append(["is_company", "=", is_company])
|
domain.append(["is_company", "=", is_company])
|
||||||
return _search_read("res.partner", domain,
|
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"],
|
"street", "city", "state_id", "country_id", "website"],
|
||||||
limit=limit, order="name asc")
|
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()
|
@mcp.tool()
|
||||||
def list_crm_stages() -> list:
|
def list_crm_stages() -> list:
|
||||||
"""List all CRM pipeline stages with their IDs and names."""
|
"""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")
|
limit=50, order="sequence asc")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user