Rand Stats

Odoo::Client

github:azawawi

Odoo::Client

Actions
Status

A simple Odoo ERP client that uses JSON RPC.

Example

use v6;
use Odoo::Client;

my $odoo = Odoo::Client.new(
    hostname => "localhost",
    port     => 8069
);

my $uid = $odoo.login(
    database => "<database>",
    username => '<email>',
    password => "<password>"
);
printf("Logged on with user id '%d'\n", $uid);

For more examples, please see the examples folder.

Installation

To install it using zef (a module management tool bundled with Rakudo Star):

$ zef install Odoo::Client

Testing

$ prove --ext .rakutest -ve "raku -I."
$ zef install Test::META
$ AUTHOR_TESTING=1 prove --ext .rakutest -ve "raku -I."

See Also

Author

Ahmad M. Zawawi, azawawi on #raku

License

MIT License