تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1191 أدوات العرض

I have found this code connect odoo with api but from where I can get url, db,username, and password? Can anyone help me from where I can get these credentials?

I have found psql information from odoo shell env. I tried but its showing authentication failed.


Looking for these credentials. Anyone can help to find these information?



import requests

url = "instance url"
db = "your_database"
username = "your_username"
password = "your_password"

headers = {'Content-Type': 'application/json'}
data = {
    'jsonrpc': '2.0',
    'method': 'call',
    'params': {
        'db': db,
        'login': username,
        'password': password
    },
    'id': 1
}

response = requests.post(url, json=data, headers=headers)
session_id = response.cookies.get('session_id')





الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 25
790
2
يناير 25
851
0
سبتمبر 24
4
1
يونيو 24
1645
1
مارس 24
2029