Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1433 Lượt xem

I am currently working on setting up the POB "PrestaShop Odoo Bridge," and I've encountered a bit of a roadblock. I am at the stage where I need to configure the POB Connection in the Odoo Mapping > Odoo Configuration section. However, I am unsure about how to find the necessary information to fill in the required fields, which include the URL, Port, Database, Username, Password, and Instance ID.


I would greatly appreciate it if you could provide some guidance on where and how to find these details.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
For Odoo Online:

Odoo Online does not require a port number.

The server url is the instance's domain (e.g. https://mycompany.odoo.com), the database name is the name of the instance (e.g. mycompany).

 The username is the configured user's login as shown by the Change Password screen.


To use XML-RPC on Odoo Online instances, you will need to set a password on the user account you want to use:

  • Log in your instance with an administrator account.
  • Go to Settings ‣ Users & Companies ‣ Users.
  • Click on the user you want to use for XML-RPC access.
  • Click on Action and select Change Password.
  • Set a New Password value then click Change Password.


Starting from Odoo 14 you can generate api keys.

So instead of password you should use an API key.

To add a key to your account, simply go to your Preferences (or My Profile)

Then open the Account Security tab, and click New API Key.


For localhost:

URL and port is:

http://localhost:8069/


When you start odoo from command line you can see how to access it:

INFO ? odoo.service.server: HTTP service (werkzeug) running on localhost:8069

Default username for localhost is "admin".

The default database for localhost will be something like "odoo16". (if it is on Odoo 16)

For localhost instead of password use a generated API key.


Instance Id - I don't know. Try set it to one -  1


PS: I have created a wordpress plugin that connects to Odoo.

It requires the same data to connect to Odoo API.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 25
1524
Odoo App Đã xử lý
1
thg 11 23
2110
0
thg 5 24
1841
0
thg 9 23
2770
0
thg 9 23
2408