Comment 15 for bug 613721

Revision history for this message
Ravindra Mekhiya(OpenERP) (rme-openerp) wrote : Re: accented letters are not accepted anymore in 5.0.12

Hi Guys,

I have investigated the problem. Its more a technical.

This cannot be called as a regression, but it was a hidden bug.

Here I explain:

--> Look at the fix http://bazaar.launchpad.net/~openerp/openobject-server/5.0/revision/2086 and the bug linked.

Earlier, It was not returning the original source if the the language is False or the translation was not found.
After the the fix in 2086, the return value is an encoded one and thus the actual issue has come out of the box.

Talking technically,
orm.py Line 1097 onwards... i.e texting from... if ('lang' in context) and not result:..

Earlier, before the fix the values of trans was None/False/'' from the result of _get_source.
After the fix, its now the original source other than None/False/''.

Now, if the text has some accented characters, you would get an error.

Thus, the patch attached solves the problem.

Please share your views here.