[6.0] All strings must be XML compatible: Unicode or ASCII, no NULL bytes; patch provided
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
High
|
Unassigned |
Bug Description
Hello folks,
on v6 (rev #2613) at least, there is an issue if you have some non ASCII chars inside your view. This can be tested, for instance, by installing the l10_br brazilian localization module from here https:/
Then click in Localizaçao Brasil > Configuraçao > Fiscal > Codigo de Situaçao Tributaria
you'll get:
[...]
File "/home/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
res2 = self._columns[
File "/home/
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "/home/
form_arch = self.pool.
File "/home/
xarch, xfields = self.__
File "/home/
fields_def = self.__
File "/home/
node.
File "lxml.etree.pyx", line 634, in lxml.etree.
File "apihelpers.pxi", line 487, in lxml.etree.
File "apihelpers.pxi", line 1242, in lxml.etree._utf8 (src/lxml/
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes
In bin/osv/orm.py, around line 1284, the error occurs because the self.pool.
Actually all you had to do is just use the unicode value that _get_source passed as in my attached patch. It just works and will also make OpenERP a bit faster here.
Hope this helps.
There already exists such a bug for stable.
Read at the comment #15 as it clears about the issues.
Thanks.