Error en linea 408 de account_partner (name contains 'Ñ'

Bug #999199 reported by Juan Márquez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
account-management
Fix Committed
Undecided
Unassigned

Bug Description

la linea 408 genera una excepción si el nombre del partner contiene una Ñ

name = str(u'%s - %s'%(parent_name.decode('utf-8').upper(), vals['name'].decode('utf-8').upper())).encode('utf-8')

con este codigo se soluciona:

            try:
                name = str(u'%s - %s'%(parent_name.decode('utf-8').upper(), vals['name'].decode('utf-8').upper())).encode('utf-8')
            except:
                name = '%s - %s'%(parent_name, vals['name'])

Related branches

Revision history for this message
Juan Márquez (jmarquez) wrote :

Archivo diff

Aun incluye referencias al bug anterior de los context

Juan Márquez (jmarquez)
Changed in account-management:
status: New → Fix Committed
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.