Skip to Content
Menu
This question has been flagged

Hi,


I am getting the following error when I run the "Pay Now" button on checkout page. It is related with the Payment Acquirer add-on which I am customising to work with Odoo version 15.


Traceback (most recent call last):

  File "/opt/meraodoo/odoo/addons/base/models/qweb.py", line 219, in render_template

    yield from compiled_fn(self, values, log)

  File "", line 117, in template_1955

KeyError: 'acquirer'


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "/opt/meraodoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch

    result = request.dispatch()

  File "/opt/meraodoo/odoo/http.py", line 687, in dispatch

    result = self._call_function(**self.params)

  File "/opt/meraodoo/odoo/http.py", line 359, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/opt/meraodoo/odoo/service/model.py", line 94, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/meraodoo/odoo/http.py", line 348, in checked_call

    result = self.endpoint(*a, **kw)

  File "/opt/meraodoo/odoo/http.py", line 916, in __call__

    return self.method(*args, **kw)

  File "/opt/meraodoo/odoo/http.py", line 535, in response_wrap

    response = f(*args, **kw)

  File "/opt/meraodoo/addons/website_sale_stock/controllers/main.py", line 32, in shop_payment_transaction

    return super().shop_payment_transaction(*args, **kwargs)

  File "/opt/meraodoo/odoo/http.py", line 535, in response_wrap

    response = f(*args, **kw)

  File "/opt/meraodoo/addons/website_sale/controllers/main.py", line 1249, in shop_payment_transaction

    return tx_sudo._get_processing_values()

  File "/opt/meraodoo/addons/payment/models/payment_transaction.py", line 494, in _get_processing_values

    redirect_form_html = redirect_form_view._render(rendering_values, engine='ir.qweb')

  File "/opt/meraodoo/addons/website/models/ir_ui_view.py", line 424, in _render

    return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/meraodoo/addons/web_editor/models/ir_ui_view.py", line 29, in _render

    return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/meraodoo/odoo/addons/base/models/ir_ui_view.py", line 1984, in _render

    return self.env[engine]._render(self.id, qcontext)

  File "/opt/meraodoo/odoo/tools/profiler.py", line 289, in _tracked_method_render

    return method_render(self, template, values, **options)

  File "/opt/meraodoo/odoo/addons/base/models/ir_qweb.py", line 74, in _render

    result = super()._render(template, values=values, **compile_options)

  File "/opt/meraodoo/odoo/addons/base/models/qweb.py", line 134, in _render

    result = ''.join(rendering)

  File "/opt/meraodoo/odoo/addons/base/models/qweb.py", line 223, in render_template

    raise QWebException("Error when render the template", self, options,

Exception


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "/opt/meraodoo/odoo/http.py", line 643, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/opt/meraodoo/odoo/http.py", line 301, in _handle_exception

    raise exception.with_traceback(None) from new_cause

odoo.addons.base.models.qweb.QWebException: 'acquirer'

Traceback (most recent call last):

  File "/opt/meraodoo/odoo/addons/base/models/qweb.py", line 219, in render_template

    yield from compiled_fn(self, values, log)

  File "", line 117, in template_1955

KeyError: 'acquirer'


Error when render the template

KeyError: 'acquirer'

Template: 1955

Path: /t/div/input[8]

Node:

===================================================================


Any help or guidance will be highly appreciated.

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 21
2284
3
Feb 24
1304
1
Feb 23
1661
1
Oct 22
46
2
Apr 22
3671