Odoo Help

0

get price unit xmlrcp openerp

By
samir Guesmi
on 6/14/13, 7:08 AM 3,083 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

0
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.

https://github.com/OpenCode/openerp-php-connector

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 .

samir Guesmi
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

samir Guesmi
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

samir Guesmi
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

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

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