Error en archivo xml modulo ou_account_partner

Bug #716572 reported by Laureano Kloss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openerp-argentina
Fix Released
Undecided
Bruno M. Villasanti (Thymbra)

Bug Description

El problema surge al instalar el modulo ou_account_partner, luego de instalado sin errores no puedo acceder a la vista de partner o empresas que trae el open dentro del menu partners-> partners, el error es el típico cuando metes algún carácter que no está codificado como utf-8.

Environment Information :
System : Linux-2.6.32-21-generic-i686-with-LinuxMint-9-isadora
OS Name : posix
Distributor ID: LinuxMint
Description: Linux Mint 9 Isadora
Release: 9
Codename: isadora
Operating System Release : 2.6.32-21-generic
Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : es_ES.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 5.0.14
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/netsvc.py", line 256, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/service/web_services.py", line 577, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/osv/orm.py", line 1372, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=context)
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/osv/orm.py", line 1117, in __view_look_dom_arch
    fields_def = self.__view_look_dom(cr, user, node, view_id, context=context)
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/osv/orm.py", line 1112, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, context))
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/osv/orm.py", line 1112, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, context))
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/osv/orm.py", line 1112, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, context))
  File "/home/eynes/open_erp/openerp-server-5.0.14/bin/osv/orm.py", line 1104, in __view_look_dom
    node.set('string', trans)
  File "lxml.etree.pyx", line 634, in lxml.etree._Element.set (src/lxml/lxml.etree.c:31548)
  File "apihelpers.pxi", line 487, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:13896)
  File "apihelpers.pxi", line 1242, in lxml.etree._utf8 (src/lxml/lxml.etree.c:19848)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes

Changed in openerp-argentina:
assignee: nobody → Bruno M. Villasanti - http://www.openunit.com.ar/ (brunovillasanti)
status: New → Confirmed
Revision history for this message
Bruno M. Villasanti (Thymbra) (brunovillasanti) wrote :

Al parecer, el acento causa ésta excepción en determinados sistemas operativos. En Open UnIT utilizamos Ubuntu 10.04 e incluso desde la versión 9.04 hemos incluido cadenas no UTF8 como traducciones sin problemas. Sin embargo ahora veo que éste error ya ha sido reportado y por ello se recomienda utilizar los archivos .po para introducir traducciones con caracteres no válidos. Quizás las diferentes versiones en el parser XML de Python instalado de los cuales disponen las distintas distribuciones de Linux sean una razón para la irregularidad de la excepción.

Revision history for this message
Bruno M. Villasanti (Thymbra) (brunovillasanti) wrote :

Código revisado para todas las ocurrencias de caracteres acentuados. Removidos para evitar incompatibilidades con otras distribuciones de Linux. FIX en revisión 9.

Changed in openerp-argentina:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.