← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 716572] Re: Error en archivo xml modulo ou_account_partner

 

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.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/716572

Title:
  Error en archivo xml modulo ou_account_partner

Status in OpenERP Localization for Argentina:
  Fix Released

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





References