How To Generate API key In Odoo14 || How To Use Developer API Key in Odoo14
HTML-код
- Опубликовано: 27 апр 2021
- How to generate and use api key in odoo 14. New in version 14.0.
Odoo 14 has support for API Keys and (depending on modules or settings) may require these keys to perform Odoo webservice operations.The way to use API Keys in your scripts is to simply replace your password by the key. The login remains in-use. You should store the API Key as carefully as the password as they essentially provide the same access to your user account (although they can not be used to log-in via the interface).In order to add a key to your account, simply go to your Preferences (or My Profile).
Read More at: www.odoo.com/documentation/14...
Website: www.odoomates.tech/
Github: github.com/odoomates
Email : odoomates@gmail.com
Facebook: / odoomate
Twitter: / odoomates
Support Us in Ko Fi : ko-fi.com/odoomates Наука
Thanks for your video, can i suggest à topic ! ( SAAS) odoo software as a service. How tu go from scratch and what the basics to begin
Noted
What about older versions of Odoo? Is it possible to generate API keys on Odoo 10? Thanks
by default no option in other version, it is introduced in v14
where i save this file ?
you mean where we have to save this generated api key ?
hello sir i m doing everything accordingly but still its not working. db, username, password is same and api key as well,,
url = "localhost:8069"
db = "test"
username = 'admin'
password = '59d72e13d46590ff353dae984ff5cdc5e7e5cb10'
import xmlrpc.client
# info = xmlrpc.client.ServerProxy('localhost:8069/').start()
# url, db, username, password = info['host'], info['database'], info['user'], info['password']
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url), allow_none=1)
a = common.version()
print(a)
uid = common.authenticate(db, username, password, {})
if uid:
print("authentication success")
else:
print("authenitication failed")
**********************************************************
output: {'server_version': '15.0-20221102', 'server_version_info': [15, 0, 0, 'final', 0, ''], 'server_serie': '15.0', 'protocol_version': 1}
authenitication failed
is the password you passed is api key ? can you confirm with normal password and see if it works
@@OdooMates yes i tried with actual password but still not working
@@OdooMates hello sir i managed to taken out the result as success but the token we generated from odoo can we use that to call the data from other application, if not how can we use this method of external api because to establish connection with third party they are asking for api key