connect-openerp
v1.0.3
Published
OpenERP v7.0 API
Downloads
5
Readme
Connect-OpenERP
OpenERP v7.0 API.
Install
$ npm install connect-openerp --save
Usage
// Connect
const OpenERP = require('connect-openerp');
// Connect to OpenERP Server
const oerp = new OpenERP('localhost', 8069);
oerp.connect('db_test');
var username = 'admin', password = 'admin';
oerp.login(username, password, function (err, uid) {
if (err){
console.log(err)
} else {
console.log('Uid Logged: ' + uid)
}
});
// List Databases
odoo.listDatabases(function (err, dblist) {
if (err)
console.log(err)
else
console.log(dblist)
});
License
[ISC License][LICENSE]