Hello,
I hope this is the right place to be asking this…
I'm trying to get invoice data from Odoo with XMLRPC Client.
I was successful at getting invoice data by reading account.invoice with invoice id as parameter, but I soon noticed that I didn't get all the data I needed. For example payment term contained payment term id, not the actual days value. I know that I can get the payment term value by reading account.payment.term.line with payment term id as a parameter, but I was thinking if there is a way to get all the data with single request?
This is how I'm executing requests:
$connecion = new xmlrpc_client('https://odoo.example.com'. '/xmlrpc/object');
$c_msg = new xmlrpcmsg('execute');
$c_msg->addParam(new xmlrpcval('database', "string"));
$c_msg->addParam(new xmlrpcval('1234', "int"));
$c_msg->addParam(new xmlrpcval('password', "string"));
$c_msg->addParam(new xmlrpcval('account.invoice', "string"));
$c_msg->addParam(new xmlrpcval('read', "string"));
$c_msg->addParam(new xmlrpcval($response->value()->scalarval(), "array")); // Invoice Ids from previous request
$c_response = $connecion->send($c_msg);
Thanks :)