Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

ERROR 500 INTERNAL ERROR IN SHOPPING CART

Subscriure's

Get notified when there's activity on this post

This question has been flagged
shopping_cartwebsite_sale
2 Respostes
2308 Vistes
Avatar
Rodrigo Hernandez del Moral

I HAVE MY ONLINE STORE, I ONLY HAVE THE WEB PAGE APPLICATIONS, I CLARIFY.

WHEN I ADD PRODUCTS TO THE SHOPPING CART TO TEST THE PAYMENT METHOD, THEY ARE ADDED CORRECTLY, HOWEVER WHEN I ENTER THE CART I GET AN ERROR AND I CAN NOT DO ANYTHING, I GET THE ERROR THAT I SHARE BELOW.

I CLARIFY THAT THE PAYMENT METHOD I HAVE IS STRIPE.



Traceback (most recent call last):

  File "/home/odoo/src/odoo/saas-17.4/odoo/tools/cache.py", line 103, in lookup

    r = d[key]

        ~^^^^^

  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun

    return caller(func, *(extras + args), **kw)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/tools/func.py", line 84, in locked

    return func(inst, *args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/tools/lru.py", line 34, in __getitem__

    a = self.d[obj]

        ~~~~~~^^^^^

KeyError: ('ir.model.data', , 'payment.payment_method_unknown')

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

  File "/home/odoo/src/odoo/saas-17.4/odoo/http.py", line 1976, in _transactioning

    return service_model.retrying(func, env=self.env)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/service/model.py", line 134, in retrying

    result = func()

             ^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/http.py", line 1943, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/http.py", line 2100, in dispatch

    return self.request.registry['ir.http']._dispatch(endpoint)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/addons/base/models/ir_http.py", line 227, in _dispatch

    result = endpoint(**request.params)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/http.py", line 757, in route_wrapper

    result = endpoint(self, *args, **params_ok)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/addons/website_sale/controllers/main.py", line 765, in cart

    values.update(self._get_express_shop_payment_values(order))

                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/addons/website_sale/controllers/main.py", line 1742, in _get_express_shop_payment_values

    'payment_method_unknown_id': request.env.ref('payment.payment_method_unknown').id,

                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/api.py", line 584, in ref

    res_model, res_id = self['ir.model.data']._xmlid_to_res_model_res_id(

                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/addons/base/models/ir_model.py", line 2229, in _xmlid_to_res_model_res_id

    return self._xmlid_lookup(xmlid)

           ^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun

    return caller(func, *(extras + args), **kw)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/tools/cache.py", line 110, in lookup

    value = d[key] = self.method(*args, **kwargs)

                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/odoo/src/odoo/saas-17.4/odoo/addons/base/models/ir_model.py", line 2222, in _xmlid_lookup

    raise ValueError('External ID not found in the system: %s' % xmlid)

ValueError: External ID not found in the system: payment.payment_method_unknown

0
Avatar
Descartar
Avatar
Alan Estrada
Best Answer

Hello I have the same problem. 

I dont have the error as Rodrigo, I dont know where to find a log like that. 

I tried to disable my payment methods and it didn´t work.

Have you solved your problem?

0
Avatar
Descartar
Avatar
Sujata
Best Answer

Hello Rodrigo,

The error you're encountering indicates that Odoo is trying to reference an external ID (payment.payment_method_unknown), which is not found in your system. This is causing the issue when you're attempting to use the Stripe payment method on your website.

Follow the approach below to troubleshoot the issue:
  1. Check Payment Method Configuration:
    • Go to Invoicing > Configuration > Payment Providers and ensure that Stripe is properly configured.
    • Make sure that a valid payment method is associated with Stripe in your system. This ensures that the correct method is available for processing payments.
  2. Verify if the Missing Payment Method Exists:
    • Navigate to Settings > Technical > Database Structure > External Identifiers (XML IDs).
    • Search for payment.payment_method_unknown. If this ID doesn't exist, it may be the cause of the issue.
  3. Add the Missing Payment Method (If Necessary):
    • If payment.payment_method_unknown does not exist, you may need to manually add or restore the missing payment method.
    • Check your system for other missing payment methods or reinstall any modules related to Payments (e.g., payment, payment_stripe).
  4. Check Stripe Configuration:
    • Go to Invoicing > Configuration > Payment Providers and review the Stripe configuration.
    • Ensure that Stripe is properly published, and verify that your API credentials (keys) are set correctly.
    • Ensure that a proper Payment Journal is configured for Stripe.
  5. Reinstall the Payment Module (If Necessary):
    • If the issue persists, consider reinstalling the payment module to restore any missing configurations.
    • Go to Apps, search for the payment module, and reinstall it to reset the configuration.
  6. Custom Development Check:
    • If you are using custom code for payment integration or customization, ensure that there are no incorrect references to payment.payment_method_unknown. Review the custom logic and make sure it points to valid payment methods.

Let me know if it helps :)

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
very critical issue for Paypal payment in the web shop the SO is changed after payment
shopping_cart website_sale paypal quotation invoice
Avatar
Avatar
2
d’abr. 16
5397
QWeb render error: Node: <t t-set="display_image" t-valuef="true"/>
website_sale
Avatar
0
d’ag. 24
2552
Separate Mobile and Desktop Website in Odoo 16 Website Module Solved
website_sale
Avatar
Avatar
1
de juny 23
4802
Redirects to the shop page in website
website_sale
Avatar
0
de juny 23
2338
Odoo 13 - How to translate or rename 'My Cart' menu item.
shopping_cart
Avatar
0
de gen. 23
3868
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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