Skip to content

Welcome to Cureocity Odoo Docs

Click here to explore staging server.

Authentication

Method POST

Endpoint session/authenticate

{
    "params": {
        "login": "admin",
        "password": "1",
        "db": "cureocity_test_oct29"
    }
}

Once autneticated use the following endpoint to do all the CRUD operations

Method POST

Endpoint dataset/call_kw

Searching and retriving record ids

{
    "params": {
        "model": "product.product",
        "method": "search",
        "args":[],
        "kwargs":{
            "domain":[]
        }
    }
}

Read and retrive details of each record

{
    "params": {
        "model": "product.product",
        "method": "read",
        "args":[3],
        "kwargs":{
            "fields": ["name"]
        }
    }
}

Do search and read using a single method

Method search_read is a combination of above explained search and read methods

{
    "params": {
        "model": "product.product",
        "method": "search_read",
        "args":[],
        "kwargs":{
            "fields":["name", "list_price","is_free_service","taxes_id","uom_id"],
            "domain":[["detailed_type", "=","service"]]
        }
    }
}