Socket
Book a 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

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.