openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #14068
[Bug 1029316] Re: [Trunk/6.1.1] UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 8: ordinal not in range(128)
** Summary changed:
- [6.1.1] UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 8: ordinal not in range(128)
+ [Trunk/6.1.1] UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 8: ordinal not in range(128)
** Project changed: openerp-web => openobject-addons
** Changed in: openobject-addons
Status: New => Confirmed
** Changed in: openobject-addons
Importance: Undecided => Medium
** Changed in: openobject-addons
Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1029316
Title:
[Trunk/6.1.1] UnicodeEncodeError: 'ascii' codec can't encode character
u'\xf3' in position 8: ordinal not in range(128)
Status in OpenERP Addons (modules):
Confirmed
Bug description:
Hello,
I was creating an invoice through the web client, so I was creating a
new invoice line, when typing the name of the accountancy account with
an accent "prestación" (not really sure if this is the correct name in
english, i'm Spanish), an error appeared:
Client Traceback (most recent call last):
File "/opt/server/openerp/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/opt/server/openerp/addons/web/controllers/main.py", line 1039, in call
return self.call_common(req, model, method, args, domain_id, context_id)
File "/opt/server/openerp/addons/web/controllers/main.py", line 991, in call_common
return self._call_kw(req, model, method, args, {})
File "/opt/server/openerp/addons/web/controllers/main.py", line 1005, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/opt/server/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
args, kw)
File "/opt/server/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/opt/server/openerp/addons/web/common/http.py", line 611, in send
raise fault
Server Traceback (most recent call last):
File "/opt/server/openerp/addons/web/common/http.py", line 592, in send
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/local/lib/python2.6/dist-packages/openerp-6.1_20120709_233338-py2.6.egg/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/local/lib/python2.6/dist-packages/openerp-6.1_20120709_233338-py2.6.egg/openerp/service/web_services.py", line 586, in dispatch
res = fn(db, uid, *params)
File "/usr/local/lib/python2.6/dist-packages/openerp-6.1_20120709_233338-py2.6.egg/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/local/lib/python2.6/dist-packages/openerp-6.1_20120709_233338-py2.6.egg/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-6.1_20120709_233338-py2.6.egg/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-6.1_20120709_233338-py2.6.egg/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/server/openerp/addons/account/account.py", line 577, in name_search
ids = self.search(cr, user, [('code', operator, operand1), ('name', operator, operand2)]+ args, limit=limit)
File "/opt/server/openerp/addons/account/account.py", line 226, in search
args[pos] = ('code', '=like', str(args[pos][2].replace('%', ''))+'%')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 8: ordinal not in range(128)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1029316/+subscriptions