I have a server with odoo sh and an external one, I need to connect to the external db, I tried it with the postgresql dblink package, psql but it doesn't allow me to create the extension. ERROR: permission denied to create extension "dblink" How could I connect to the other db?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
5844
Lượt xem
Hi,
You can connect two odoo database using the xmlrpc ,
import xmlrpclib
url = 'http://0.0.0.0:8012'
db = 'db_name'
username = 'admin'
password = 'admin'
common = xmlrpclib.ServerProxy('{}/xmlrpc/2/common'.format(url))
uid = common.authenticate(db, username, password, {})
models = xmlrpclib.ServerProxy('{}/xmlrpc/2/object'.format(url))
Also see this video, showing how the data is transferred between two database using xmlrpc :- Transfer Data Between Databases Using XMLRPC In Odoo : Database Migration
Odoo Doc : https://www.odoo.com/documentation/13.0/webservices/odoo.html
Thanks
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
7
thg 7 25
|
50538 | ||
|
0
thg 2 25
|
1808 | ||
|
2
thg 1 25
|
8484 | ||
|
0
thg 12 24
|
1342 | ||
ODOO.sh
Đã xử lý
|
|
2
thg 10 24
|
13262 |