2.0.10 • Published 28 days ago

angular-odoo-jsonrpc v2.0.10

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
28 days ago

Angular-Odoo-Jsonrpc

OdooRPC for Angular 13 or 14 with rxjs

Installation

npm install --save angular-odoo-jsonrpc

Functions list

  • login(db, user, pass)
  • logout(force)
  • getDbList()
  • searchRead(model, domain, fields, limit, offset, context)
  • call(model, method, args, kwargs)

How to use

Import OdooRPCService into service or effect

import { OdooRPCService } from 'angular-odoo-jsonrpc';

Initialize configuration in constructor of component

export class OdooClientExampleService {
  constructor(
    private odooRPC: OdooRPCService
  ){
    this.odooRPC.init({
      odoo_server: "https://odoo-server-example",
      http_auth: "username:password" // optional
    });
    this.odooRPC.login('db_example', 'username', 'password')
      .pipe(
        tap(() => console.log('login success')),
        catchError(err => console.error('login failed', err))
      );
  }
  ...
}
2.0.10

28 days ago

2.0.9

6 months ago

2.0.8

6 months ago

2.0.7

11 months ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.1.1

2 years ago

1.1.7

1 year ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago