User unicode character in name, shows error when opening form.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 1 |
Bug Description
There is a problem creating a user with a character that is not in the 7-bit ASCII list inside the login. For example accented characters in spanish produce the problem. You can create the user the problem arises once you try to access the form of the user again, the following error appears :
...
File "/usr/lib/
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa1' in position 0: ordinal not in range(128)
After giving it some thought I believe I understand the problem, the textbox in creating a new user let's me add an entry with characters over 0x80 which are outside the 7-bit ASCII, now the database is already in UTF-8 so no problem there the problem occurs on the web client when it tries to read the value by passing throught the 'str()' which throws the error. In any case or the validation when creating the user should filter this or maybe it should use 'unicode()' instead of 'str()'. Seems like a design decision, hope this information helps.
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 11 lines (+1/-1)1 file modifiedauth_signup/res_users.py (+1/-1)
description: | updated |
description: | updated |
affects: | openerp-server (Ubuntu) → openerp-web |
Hello,
I have Fixed in https:/ /code.launchpad .net/~openerp- dev/openobject- addons/ trunk-bug- 1204725- jar
Revision ID: <email address hidden>
revision no :- 8877
Thanks,
Jaydeep Barot.