this is my code :
$partners = $models->execute_kw($db, $uid, $password,
'hr.attendance.month', 'search_read',
array(
array(
),
),array(
'fields' => array('year','month')));
var_dump($partners);
echo json_encode(array("employee"=>$partners ), JSON_PRETTY_PRINT);
show me this :
how to fix it !?
{
"employee": {
"faultCode": 2,
"faultString": ""
}
}