There is no license information available for the latest version (0.1.0) of this package.

PHP Client for the Odoo JSON-RPC

0.1.0 2019-07-13 18:22 UTC

This package is auto-updated.

Last update: 2024-05-14 05:48:26 UTC


README

Installation:

composer require refact-be/odoo

Usage:

use Refact\Odoo\Odoo;

$url = 'http://localhost:8069';
$credentials = ['database_name', 2, 'admin_pass'];

$odoo = new Odoo($url, $credentials);

$params = ['res.users', 'search_read', [], ['fields' => ['name']]];
$users = $odoo->rpc('object', 'execute_kw', $params);

var_dump($users);

Output:

array(1) {
  [0]=>
  array(2) {
    ["id"]=>
    int(2)
    ["name"]=>
    string(13) "Administrator"
  }
}