🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

node-odoo-jsonrpc

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-odoo-jsonrpc

Odoo JsonRPC Service for Node.js

1.0.2
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Node-Odoo-Jsonrpc

OdooRPC for node.js Inspired from odoo-connect and angular-odoo-jsonrpc

Installation

npm install --save node-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 Odoo

import { Odoo } from "node-odoo-jsonrpc";

Initialize configuration in constructor of component

const odooRPC = new Odoo();
odooRPC.init({
  odoo_server: "https://odoo-server-example",
  http_auth: "username:password", // optional
});
try {
  await odooRPC.login("db_example", "username", "password");
  console.log("login success");
} catch (err) {
  console.error("login failed", err);
}

Keywords

odoo

FAQs

Package last updated on 13 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts