Partners

Create Partner

{
  "id": "839dj3ud9829302jd",
  "action": "create",
  "model_id": "res.partner",
  "keyword": {
    "context": {
      "allowed_company_ids": [1],
      "default_company_id": 1,
      "tz": "Asia/Jakarta"
    }
  },
  "params": [
    [
      {
        "name": "John Doe. LLC",
        "is_company": true,
        "email": "johndoe@example.com"
      }
    ]
  ],
  "odoo_instance": {
    "url": "YOUR_ODOO_INSTANCE_URL",
    "user_id": INT(YOUR_USER_ID),
    "db": "YOUR_ODOO_DB",
    "api_key": "YOUR_ODOO_API_KEY"
  }
}

Query Partner

querying on un-indexed columns is costly especially if you are using "ilike" operand; on limited core hardware your odoo may freeze just to serve this request

Last updated