Skip to content

Instantly share code, notes, and snippets.

@randall-vx
Created February 28, 2021 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randall-vx/64bc6d4925aff739f6a8e0ee84fe96cd to your computer and use it in GitHub Desktop.
Save randall-vx/64bc6d4925aff739f6a8e0ee84fe96cd to your computer and use it in GitHub Desktop.
error importer
Odoo Server Error
Traceback (most recent call last):
File "/odoo/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/odoo/odoo/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo/odoo/http.py", line 912, in __call__
return self.method(*args, **kw)
File "/odoo/odoo/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo/addons/web/controllers/main.py", line 1363, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/odoo/odoo/addons/web/controllers/main.py", line 1351, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/odoo/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/odoo/odoo/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/odoo/enterprise/account_bank_statement_import_csv/wizard/account_bank_statement_import_csv.py", line 28, in import_file
return super(AccountBankStatementImport, self).import_file()
File "/odoo/enterprise/account_bank_statement_import/account_bank_statement_import.py", line 38, in import_file
currency_code, account_number, stmts_vals = self.with_context(active_id=self.ids[0])._parse_file(base64.b64decode(data_file.datas))
File "/odoo/enterprise/account_bank_statement_import_qif/wizard/account_bank_statement_import_qif.py", line 87, in _parse_file
name = data.decode('utf-8')
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/odoo/odoo/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 7: invalid continuation byte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment