Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Property Management
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

v14: Cannot authenticate using the API

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
api
3 Răspunsuri
7051 Vizualizări
Imagine profil
Juan Cruz Martino

Hi! I have purchased the licence for a couple of modules using the 14 version of Odoo and the cloud hosted solution.


I'm trying to use the API in order to integrate Odoo with some external services I have.


Following the documentation: https://www.odoo.com/documentation/master/webservices/odoo.html


I cannot authenticate, when I try I get the following error:


Traceback (most recent call last):

  File "test.py", line 13, in <module>

    uid = common.login(db, username, password)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1243, in __call__

    return self.__send(self.__name, args)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1602, in __request

    verbose=self.__verbose

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1283, in request

    return self.single_request(host, handler, request_body, verbose)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1316, in single_request

    return self.parse_response(response)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1493, in parse_response

    return u.close()

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 800, in close

    raise Fault(**self._stack[0])

xmlrpclib.Fault: <Fault 1: 'Traceback (most recent call last):\n  File "/home/odoo/src/odoo/14.0/odoo/addons/base/controllers/rpc.py", line 69, in xmlrpc_2\n    response = self._xmlrpc(service)\n  File "/home/odoo/src/odoo/14.0/odoo/addons/base/controllers/rpc.py", line 49, in _xmlrpc\n    result = dispatch_rpc(service, method, params)\n  File "/home/odoo/src/odoo/14.0/odoo/http.py", line 140, in dispatch_rpc\n    result = dispatch(method, params)\n  File "/home/odoo/src/odoo/14.0/odoo/service/common.py", line 56, in dispatch\n    return g[exp_method_name](*params)\n  File "/home/odoo/src/odoo/14.0/odoo/service/common.py", line 20, in exp_login\n    return exp_authenticate(db, login, password, None)\n  File "/home/odoo/src/odoo/14.0/odoo/service/common.py", line 25, in exp_authenticate\n    res_users = odoo.registry(db)[\'res.users\']\n  File "/home/odoo/src/odoo/14.0/odoo/__init__.py", line 104, in registry\n    return modules.registry.Registry(database_name)\n  File "/home/odoo/src/odoo/14.0/odoo/modules/registry.py", line 63, in __new__\n    return cls.registries[db_name]\n  File "/home/odoo/src/odoo/14.0/odoo/tools/func.py", line 71, in wrapper\n    return func(self, *args, **kwargs)\n  File "/home/odoo/src/odoo/14.0/odoo/tools/lru.py", line 34, in __getitem__\n    a = self.d[obj]\nTypeError: unhashable type: \'list\'\n'>


1
Imagine profil
Abandonează
Sehrish

Look how xml-rpc works: https://learnopenerp.blogspot.com/2019/10/connecting-to-odoo-using-xml-rpc.html

Imagine profil
Vincent Lion
Cel mai bun răspuns

Hi Juan.

Did you solve it ?
I was starting with API last week.
It now works fine but I had to review some of my local settings to make it work.

Did you activate the API password on your instance ?

Best,

V.

0
Imagine profil
Abandonează
Imagine profil
Juan Cruz Martino
Autor Cel mai bun răspuns

I tried using the documentation:

common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
version = common.version()

print(version)

uid = common.login(db, username, password)

print(uid)


I also tried the php connector and got the same result.


0
Imagine profil
Abandonează
Imagine profil
Niyas Raphy (Walnut Software Solutions)
Cel mai bun răspuns

Hi,

Can you add the code that you tried along with the question ? See the working of odoo xmlrpc, here: Odoo XMLRPC : Connect Odoo With External Applications


Also can you try with python 3 and see.


Thanks

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
How do I get Product Prices with json API? Rezolvat
api
Imagine profil
Imagine profil
1
nov. 25
3767
Has anyone integrated Helpdesk with Zoom for meeting scheduling?
api
Imagine profil
Imagine profil
1
aug. 25
1740
Using API check if Odoo is using Odoo sh or on-premises hosting. Rezolvat
api
Imagine profil
Imagine profil
1
aug. 25
2307
External API XMLRPC Authentication Keeps Replying with false
api
Imagine profil
Imagine profil
Imagine profil
2
iul. 25
5466
API xmlrpc - upload pdf bills to account Rezolvat
api
Imagine profil
Imagine profil
Imagine profil
3
iul. 25
2472
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now