Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mojoamex05/OdooClientBundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OdooClientBundle

OdooClientBundle is an Odoo client for Symfony 2. It is inspired on OpenERP API from simbigo and uses a more or less similar API. Instead of an own XmlRpc client it depends on the fxmlRpc (https://github.com/lstrojny/fxmlrpc).

This is a fork of https://github.com/jacobsteringa/OdooClient . It has no dependecies to Zend.

Installation

Add bundle to KernelApp.php, e.g.

$bundles[] = new Clicktrend\Bundle\OdooClientBundle\ClicktrendOdooClientBundle(),

Usage

use Clicktrend\Bundle\OdooClientBundle\Client\Odoo;

$webservice = new Odoo($endpoint, $database, $username, $password);

$condition = array(
    array('sale_ok', '=', 'TRUE')
);

$result = $webservice->search('product.template', $condition, $offset, $limit);
$products = $webservice->read('product.template', $result);

Todo

  • Create Dependency Injection to create client from config.yml

About

Odoo Client for Symfony2 accessing via xml-rpc

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%