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

We have a php based freight reporting system that runs on a separate php server and reads data from Odoo and other tables to provide a quick searchable summary of inwards and outwards goods. I am looking for a method to connect our php server to read the tables which are now housed on Odoo.sh.

The Postgres connection I have been using will not work because Odoo.sh will only allow a connection through a SSH tunnel. Has anyone else came across this issue? Did you manage to resolve it? 

(Our php server is running on an Ubuntu/Linux system.)

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

Hi Daniel,

While you can't create postgreSQL connections to the Odoo.sh instances you can use xml-rpc calls. You can code your own XML-RPC calls for all the data you need from the database tables. You can find more information about the API's at https://www.odoo.com/documentation/12.0/webservices/odoo.html 

Alternatively you could also do it the another way around by creating a module on your Odoo.sh environment. This module could then do calls to your PHP server to 'push' data to the freight reporting system instead of pulling it from the Odoo server with XML-RPC.

Regards,
Yenthe


Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
апр. 25
542
3
авг. 21
3205
0
дек. 19
61
0
дек. 19
52
3
авг. 19
8614