public function get($model)
    {
        $method = 'read';

        $ids = $this->search($model);

        //If string it can't continue for retrieving models
        //Throw exception with the error.
        if (is_string($ids))
            throw new OdooException($ids);

        $params = $this->buildParams('fields');

        $result = $this->call($model, $method, [$ids->toArray()], $params);

        //Reset params for future queries.
        $this->resetParams('fields');

        return $this->makeResponse($result);
    }
public function get($model)
    {
        $method = 'read';

        $ids = $this->search($model);

        //If string it can't continue for retrieving models
        //Throw exception with the error.
        if (is_string($ids))
            throw new OdooException($ids);

        $params = $this->buildParams('fields');

        $result = $this->call($model, $method, [$ids->toArray()], $params);

        //Reset params for future queries.
        $this->resetParams('fields');

        return $this->makeResponse($result);
    }
public function get ( $ model ) { $ method = 'read' ; $ ids = $ this -> search ( $ model ) ; //If string it can't continue for retrieving models //Throw exception with the error. if ( is_string ( $ ids ) ) throw new OdooException ( $ ids ) ; $ params = $ this -> buildParams ( 'fields' ) ; $ result = $ this -> call ( $ model , $ method , [ $ ids -> toArray ( ) ] , $ params ) ; //Reset params for future queries. $ this -> resetParams ( 'fields' ) ; return $ this -> makeResponse ( $ result ) ; }
Get a list of records.

@param string $model
@return Collection
@throws OdooException
Get a list of records .