0.1.1 • Published 5 years ago

powerp.js v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

PowERP.js

Javascript client for PowERP and MessagePack protocol.

Example

import Client from 'powerp';


const c = new Client('http://localhost:8068', 'test', 'admin', 'admin');
c.login().then(() => {
    const model = c.model('res.partner');
    model.search([['name', 'ilike', 'asus']]).then((ids) => {
        model.read(ids, ['name', 'vat']).then((results) => {
            results.map((result) => {
                console.log(`Partner ${result.name} vat: ${result.vat}`);
            });
        });
    });
});

Running tests

$ npm install
$ npm test
0.1.1

5 years ago

0.1.0

5 years ago