public function count($model)
    {
        $method = 'search_count';

        $condition = $this->condition ?: [[]];

        $result = $this->call($model, $method, $condition);

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

        return $this->makeResponse($result, 0);

    }
public function count($model)
    {
        $method = 'search_count';

        $condition = $this->condition ?: [[]];

        $result = $this->call($model, $method, $condition);

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

        return $this->makeResponse($result, 0);

    }
public function count ( $ model ) { $ method = 'search_count' ; $ condition = $ this -> condition ? : [ [ ] ] ; $ result = $ this -> call ( $ model , $ method , $ condition ) ; //Reset params for future queries. $ this -> resetParams ( 'condition' ) ; return $ this -> makeResponse ( $ result , 0 ) ; }
Count the items in a model's table.

@param string $model
@return integer
@throws OdooException
Count the items in a model s table .