use Obuchmann\OdooJsonRpc\Odoo\Request\Request;
class ArchiveProject extends Request
{
public function __construct(private int $projectId)
{
parent::__construct('project.project', 'action_archive');
}
public function toArray(): array
{
return [
$this->projectId
];
}
public function hasResponse(): bool {
return false;
}
}
should be taken care at Obuchmann\OdooJsonRpc\JsonRpc\Client: makeResponse
e.g. project.project action_archive.
should be taken care at Obuchmann\OdooJsonRpc\JsonRpc\Client: makeResponse
Error thrown at: return $json->result;