Lokavaluto / lokavaluto-addons

Addons repository for lokavaluto
GNU General Public License v3.0
6 stars 17 forks source link

12.0 bug payment app connection #219

Closed stephansainleger closed 2 years ago

stephansainleger commented 2 years ago

Payment in prod was not working as an import is missing in file lcc_lokavaluto_app_connection/controllers/portal.py

2022-05-23 09:11:05,113 44 ERROR gestion.pive.fr odoo.http: Exception during JSON request handling. 
Traceback (most recent call last):
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 656, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 314, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/custom/src/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 698, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 346, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/service/model.py", line 98, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 519, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/auto/addons/lcc_lokavaluto_app_connection/controllers/portal.py", line 46, in payment_transaction_token
    submit_txt=_("Pay & Confirm"),
NameError: name '_' is not defined