Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

ERROR 500 INTERNAL ERROR IN SHOPPING CART

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
shopping_cartwebsite_sale
2 Respuestas
2221 Vistas
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
Mejor respuesta

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
Mejor respuesta

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
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
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
abr 16
5327
QWeb render error: Node: <t t-set="display_image" t-valuef="true"/>
website_sale
Avatar
0
ago 24
2477
Separate Mobile and Desktop Website in Odoo 16 Website Module Resuelto
website_sale
Avatar
Avatar
1
jun 23
4725
Redirects to the shop page in website
website_sale
Avatar
0
jun 23
2298
Odoo 13 - How to translate or rename 'My Cart' menu item.
shopping_cart
Avatar
0
ene 23
3787
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

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