execute_kw( $db, $uid, $password, 'account.invoice', 'search', array( array( array('id', '=', 9), ) ) ); $report = ripcord::client("$url/xmlrpc/2/report"); $result = $report->render_report($db, $uid, $password, 'account.report_invoice', $invoice_ids); $report_data = base64_decode($result['result']); $file = fopen('facture.pdf', 'w+'); fwrite($file, $report_data); fclose($file); echo "jai la facture";