Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1605 Vistas

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

Avatar
Descartar
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?

Avatar
Descartar
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 :)

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
abr 16
4806
0
ago 24
1529
1
jun 23
3849
0
jun 23
1708
0
ene 23
3272