コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
12441 ビュー

Hello,

I'm trying to connect Odoo with a Postgresql db that's located in another machine. I set the new database hostname (I have its endpoint), port, user and password in "openerp-server.conf", however, when I launch odoo.py I get  

2016-03-03 11:51:35,170 1284 INFO ? openerp: database hostname: localhost

2016-03-03 11:51:35,170 1284 INFO ? openerp: database port: 5432


If I lauch odoo with the database hostname and port arguments, it works fine, so I'm guessing odoo is not looking at the openerp-server.conf that I changed. 

in odoo/debian/init I have changed the CONFIG attribute and it points to the new openerp-server.config


Do I need to change anything else?


Thank you

アバター
破棄
最善の回答

Hi, Carlos

You are getting this issue because Odoo is not able to locate your conf file. So in order to locate your conf file while running your Odoo there have multiple ways. Like

  • If you are running your Odoo directly from bin file then you need to pass your config file along with then bin file using "-c" or "--config" like below,

    • ../odoo-bin -c config_file_path
    • e.g: Path of your config file is /etc/odoo/odoo.conf

    • Then you can you command like,

      • ../odoo-bin -c /etc/odoo/odoo.conf  OR ../odoo-bin --config /etc/odoo/odoo.conf
  • Else you can achieve the same by creating a shell script file.

    • You can take help from the file,Script File

    • Or you can  refer to the Odoo Debian file.

    • Inside this file you can update your config file path inside "CONFIGFILE" attribute.

      • CONFIGFILE="/etc/odoo-server.conf"

    • Then you can you simply start/restart your shell script file using below command.

      • Script_FIle_Path start/restart

      • e.g: Path of script file is /etc/init.d/odoo-server then you can run command like below,

        • /etc/init.d/odoo-server restart 
Hope above points will help you to achieve this part. In case of any confusion feel free to ask.

Thanks,
Ashish Singh (Team Lead)
Webkul Software Private Limited
アバター
破棄
最善の回答

Mira el siguiente enlace:

http://poncesoft.blogspot.com.es/2014/06/utilizar-un-servidor-independiente.html

Espero que te baya bien, recibe un cordial saludo.

アバター
破棄
最善の回答

Try using xmlrpc

アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 21
2667
2
2月 19
9938
14
12月 17
101692
0
9月 17
2772
0
3月 15
3881