def onchange_mayusculas(self, cr, uid, ids, texto, field_name): res = {} if texto: txt1 = cambiarTildes(texto.encode('UTF-8')) txt = txt1.upper() res['value'] = {field_name: txt} return res