Skip to Content
Menu
This question has been flagged
1 Reply
4815 Views

Good afternoon.

When importing contacts from EXCEL into your funnel, import the file.

I get an error

--------------------------

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 641, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 683, in dispatch result = self._call_function(**self.params) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 333, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 101, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 326, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 941, in __call__ return self.method(*args, **kw) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 506, in response_wrap response = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 890, in call_kw return self._call_kw(model, method, args, kwargs) File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 882, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 689, in call_kw return call_kw_multi(method, model, args, kwargs) File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 680, in call_kw_multi result = method(recs, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/odoo/addons/base_import/models/base_import.py", line 519, in parse_preview 'error': str(error), UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128)
Avatar
Discard
Best Answer

Try this one

some_var = your_variable_goes_here.encode('ascii', 'ignore').decode('ascii')

Hope its helpful in your case

Avatar
Discard
Related Posts Replies Views Activity
4
Dec 23
20848
4
May 24
1420
0
Feb 24
320
0
Nov 23
311
3
Nov 23
5993