Odoo JsonRPC Service for Angular 5


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
31May 11, 2018Nov 22, 2017Minified + gzip package size for angular5-odoo-jsonrpc in KB



OdooRPC for angular 5


npm install --save angular5-odoo-jsonrpc

Functions list

  • login(db, user, pass)
  • logout(force)
  • getDbList() // doesn't work with odoo >= 9.0
  • searchRead(model, domain, fields)
  • call(model, method, args, kwargs)

How to use

Import OdooRPCService into component

import { Component } from '@angular/core';
import { OdooRPCService } from 'angular5-odoo-jsonrpc';

Add provider in app component

    providers: [OdooRPCService]

Initialize configuration in constructor of component

export class OdooClientExampleComponent {

    constructor(odooRPC: OdooRPCService){
            odoo_server: "https://odoo-server-example",
            http_auth: "username:password" // optional
        this.odooRPC.login('db_example', 'username', 'password').then(res => {
            console.log('login success');
        }).catch( err => {
            console.error('login failed', err);



If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from