Git Product home page Git Product logo

odoo_api's Introduction

English | Spanish

odoo_api

Odoo API XMLRPC Style

The module odoo_api allows you make REST API calls with a sintax similar to XMLRPC calls. The benefit of this is, you do not have to do a lot of development on the backend side. The downside of that is you still have to do a lot of coding, on the frontend side. Plus, you will need to know the inner workings of Odoo.

This module has no requirements for its installation. You only need to download it form the github repository and install it in your Odoo. Please, keep in mind that the dbfilter setting needs to be set to a database for the REST interface to work.

Check wiki: odoo_api wiki

Table of contents

Documentation

Odoo Version

POST /odoo-api/common/version

Parameters

None

Examples

Python
import requests
import json

url = 'http://localhost:8069/odoo-api/common/version'
data = {'params': {}}
headers = {'Content-type': 'application/json'}

r = requests.post(url, data=json.dumps(data), headers=headers)

print(r.text)

Odoo Login

POST /odoo-api/common/login

Parameters

Attribute Type Required Description
db string yes Odoo server DB name
login string yes Odoo User
password string yes Odoo User Password

Examples

Odoo Fields Get

POST /odoo-api/object/fields_get

Parameters

Attribute Type Required Description
model string yes Odoo model
db string yes Odoo server DB name
login string yes Odoo User
password string yes Odoo User Password

Examples

Odoo Search Count

POST /odoo-api/object/search_count

Parameters

Attribute Type Required Description
model string yes Odoo model
filters array no Odoo filter for records in search
db string yes Odoo server DB name
login string yes Odoo User
password string yes Odoo User Password

Examples

Odoo Search

POST /odoo-api/object/search

Parameters

Attribute Type Required Description
model string yes Odoo model
filters array no Odoo filter for records in search
keys object no Odoo key arguments
db string yes Odoo server DB name
login string yes Odoo User
password string yes Odoo User Password

Examples

Odoo Read

POST /odoo-api/object/read

Parameters

Attribute Type Required Description
model string yes Odoo model
ids number array yes Odoo number array of record IDS
db string yes Odoo server DB name
login string yes Odoo User
password string yes Odoo User Password

Examples

Odoo Search Read

POST /odoo-api/object/search_read

Parameters

Attribute Type Required Description
model string yes Odoo model
filters array no Odoo filter for records in search
keys object no Odoo key arguments
db string yes Odoo server DB name
login string yes Odoo User
password string yes Odoo User Password

Examples

Odoo Write

POST /odoo-api/object/write

Parameters

Attribute Type Required Description
model string yes Odoo model
id number yes Odoo record ID
vals object yes Odoo object of values to write
db string yes Odoo server DB name
login string yes Odoo User
password string yes Odoo User Password

Examples

Odoo Create

POST /odoo-api/object/create

Parameters

Attribute Type Required Description
model string yes Odoo model
vals object no Odoo object of values to create on record
db string yes Odoo server DB name
login string yes Odoo User
password string yes Odoo User Password

Examples

Odoo Delete

POST /odoo-api/object/unlink

Parameters

Attribute Type Required Description
model string yes Odoo model
id number yes Odoo record ID to delete
db string yes Odoo server DB name
login string yes Odoo User
password string yes Odoo User Password

Examples


Originally developed for Codize App

Developer: Ignacio Buioli <[email protected]>

odoo_api's People

Contributors

ibuioli avatar nasjoe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.