value error when opening form view of a product
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Incomplete
|
Undecided
|
Unassigned | ||
Bug Description
In the revision n° 2544 when opening a product in form view, it raises a value error :
ERROR:web-
Traceback (most recent call last):
File "/opt/openerp-
return f(self, dbname, *args, **kwargs)
File "/opt/openerp-
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp-
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp-
result = super(osv.osv, self).fields_
File "/opt/openerp-
xarch, xfields = self.__
File "/opt/openerp-
fields_def = self.__
File "/opt/openerp-
fields.
File "/opt/openerp-
fields.
File "/opt/openerp-
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
It works in the revision n°2543 so it must be in the modification of : bin/addons/
note that the proucts are registered in Portuguese.
On Tuesday 27 July 2010, you wrote:
> Public bug reported:
>
> In the revision n° 2544 when opening a product in form view, it raises a
> value error :
> (src/lxml/ lxml.etree. c:19848) ValueError: All strings must be XML base/ir/ ir_translation. py
> compatible: Unicode or ASCII, no NULL bytes
>
> It works in the revision n°2543 so it must be in the modification of :
> bin/addons/
>
> note that the proucts are registered in Portuguese.
>
Only judging from the error description, (that resides in some C code), it
seems that you have slipped some invalid character (yes, utf8 can have bad
data) in your xml file. Please test it. You could xmllint it as well.