Skip to Content
मेन्यू
This question has been flagged
430 Views

admin_passwd = sifeddine

db_host = localhost

db_port = 5432db_user = isifoo

db_password = sifeddine

addons_path = /home/isifoo/odoo16/odoo/addons, /home/isifoo/odoo16/odoo/dev

xmlrpc_port = 8016

http_port = 8069

this was my odoo.conf, that i'm using it to start my odoo server, ( the passwords are dummy passwords dw)


when i run my code i get this 

['sifodb']

Traceback (most recent call last):

  File "config.py", line 10, in

    odoo.login('sifodb', 'isifoo', 'sifeddine')

  File "/home/isifoo/odoo16/venv/lib/python3.8/site-packages/odoorpc/odoo.py", line 378, in login

    raise error.RPCError("Wrong login ID or password")

odoorpc.error.RPCError: Wrong login ID or password 


my code : 

import odoorpc

# Prepare the connection to the server

odoo = odoorpc.ODOO('localhost', port=8069)

# Check available databases

print(odoo.db.list())

# Login

odoo.login('sifodb', 'isifoo', 'sifeddine')


i was even able to connect to the database using:

psql postgresql://isifoo:sifeddine@localhost:5432/sifodb


idk why odoo.login is saying that the passwrd or usr is wrong 

even admin, admin didn't work


Avatar
Discard