Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


get price unit xmlrcp openerp

on 6/14/13, 7:08 AM 2,257 views

hi all ,

i want to get price unit , with xmlrcp , i am coding with php .

with this extract of code :

     $this->msg = new xmlrpcmsg('execute');
     $this->msg->addParam(new xmlrpcval($this->database, "string"));
     $this->msg->addParam(new xmlrpcval(1, "int"));
     $this->msg->addParam(new xmlrpcval($this->password, "string"));
     $this->msg->addParam(new xmlrpcval("product.product","string"));
     $this->msg->addParam(new xmlrpcval("read", "string"));
     $this->msg->addParam(new xmlrpcval($ids_read, "array"));
     $this->msg->addParam(new xmlrpcval($key, "array"));

i just get , Id, and name


Francesco OpenCode

--Francesco OpenCode--
| 5 7 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 6/14/13, 8:18 AM

Hi. If you want ypou can use my librery to manage openerp data from php with xml-rpc in simple way.


In the index.php you can reed some examples. Use them to read the price from product.

hi , thanks for replay , i am trying it , but he dont work .

on 6/14/13, 8:27 AM

What error it get you? I useit very much and I haven't problre,

Francesco OpenCode
on 6/14/13, 8:35 AM

dirst in index.php , you forgot a " ; " in line 42 then ,after this correction , a big list of error appear , then i am trying to call a new version of "xmlrpc.inc" . theni got one ERROR :

SCREAM: Error suppression ignored for ( ! ) Fatal error: Call to a member function scalarval() on a non-object in C:\wamp\www\portail\openerp-php-connector-master\openerp.class.php on line 48

on 6/14/13, 11:12 AM

Oh..i'm so sorry for the mistake. I will fix it...thanks...:)

Francesco OpenCode
on 6/14/13, 11:15 AM

can i have your mail adress to sent you the screenshots

on 6/14/13, 11:17 AM

All the error you read are normal. They are not mine but based on original xml-rpc library. The last error is returned when php-xml-rpc can't login in openerp. Are all the parameters for the connection right?

Francesco OpenCode
on 6/14/13, 11:19 AM

f.apruzzese AT andreacometa DOT it

Francesco OpenCode
on 6/14/13, 11:19 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 6/14/13, 7:08 AM
Seen: 2257 times
Last updated: 3/16/15, 8:10 AM