Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The Node.js client library for OpenERP

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENCE
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

Node-OpenERP

The Node.js OpenERP library enables accessing any OpenERP server's XML-RPC API.

Build Status

Install:

This library may be installed using npm:

npm install openerp

Usage:

api.createClient(options)

This method sets up a client for connecting to openerp-server's databases. Here's a minimal example for connecting :

var openerp = require('openerp');

var client = openerp.createClient({
  username: 'efbeka',
  password: 'foo',
  database: 'bar',
  host: 'https://openerp.foobar.com',
  port: '8069'
});

The options object contains 4 required properties:

  • username: The username
  • password: The password
  • database: The database name
  • host & port(optional, default to 80): The uri of the Openerp-server host.

client

Method calls are structured as resource and action.

client.resource.action("data", function (err, result) {
  if (err) {
    throw err;
  }

  // use the result

});

The client's methods are reflective of OpenERP's RPC availaible calls.

The full list will be implemented and available here progressively.

Tests

All tests are written with vows and should be run with npm:

  $ npm test

License

Copyright (C) 2012 Berger Kennedy Fotso

Distributed under the MIT License, see the LICENCE file.

Something went wrong with that request. Please try again.