Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6464 Представления

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

Аватар
Отменить
Лучший ответ

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 .

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

Автор

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

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

Автор

can i have your mail adress to sent you the screenshots

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?

f.apruzzese AT andreacometa DOT it

Related Posts Ответы Просмотры Активность
3
июл. 25
2992
1
окт. 24
2182
1
апр. 24
2238
0
сент. 23
1742
1
июн. 23
2195