Trunk Web Client Unicode Erro

Bug #599852 reported by Renato Lima - http://www.akretion.com
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
Sananaz (Open ERP)

Bug Description

Hello,

When I create one database in web client trunk version with default lang pt-BR and try open some forms like Administration -> Users -> User I have this error:

[29/Jun/2010:12:51:13] HTTP Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/renato/projects/openerp-trunk/web/openobject/tools/_expose.py", line 202, in func_wrapper
    res = func(*args, **kw)
  File "/home/renato/projects/openerp-trunk/web/openobject/controllers/_root.py", line 26, in default
    return request.handler()
  File "/usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/controllers/utils.py", line 124, in wrapper
    return fn(*args, **kw)
  File "/home/renato/projects/openerp-trunk/web/openobject/tools/_expose.py", line 202, in func_wrapper
    res = func(*args, **kw)
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/controllers/tree.py", line 265, in open
    'ids': kw.get('id')})
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/controllers/tree.py", line 224, in do_action
    report_type='pdf')
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/controllers/actions.py", line 384, in execute_by_keyword
    return execute(action, **data)
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/controllers/actions.py", line 263, in execute
    search_view = data['search_view'])
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/controllers/actions.py", line 85, in execute_window
    return Form().create(params)
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/controllers/utils.py", line 124, in wrapper
    return fn(*args, **kw)
  File "/home/renato/projects/openerp-trunk/web/openobject/tools/_expose.py", line 202, in func_wrapper
    res = func(*args, **kw)
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/controllers/form.py", line 202, in create
    form = self.create_form(params, tg_errors)
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/controllers/form.py", line 193, in create_form
    return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
  File "/home/renato/projects/openerp-trunk/web/openobject/widgets/_meta.py", line 40, in wrapper
    res = func(self, *args, **kw)
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/widgets/form_view.py", line 89, in __init__
    filter_domain=params.filter_domain or [], search_view=params.search_view, group_by_ctx=params.group_by_ctx or [])
  File "/home/renato/projects/openerp-trunk/web/openobject/widgets/_meta.py", line 40, in wrapper
    res = func(self, *args, **kw)
  File "/home/renato/projects/openerp-trunk/web/addons/openerp/widgets/search.py", line 256, in __init__
    dom = xml.dom.minidom.parseString(self.search_view['arch'].encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19: ordinal not in range(128)

[29/Jun/2010:12:51:13] HTTP
Request Headers:
  REFERER: http://localhost:8080/openerp/menu?active=3
  HOST: localhost:8080
  X-REQUESTED-WITH: XMLHttpRequest
  ACCEPT: */*
  ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  USER-AGENT: Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
  CONNECTION: keep-alive
  COOKIE: _notebook__notebook_1_active_page=0; _notebook__notebook_1_active_page=1; terp_db=openerp_trunk2; terp_user=admin; terp_db=openerp_trans; terp_user=admin; session_id=5b321dc1c0d0f993233f695f557ae32293ea4f80
  Remote-Addr: 127.0.0.1
  ACCEPT-LANGUAGE: pt-br,pt;q=0.8,en-us;q=0.6,en;q=0.4,fr-fr;q=0.2
  ACCEPT-ENCODING: gzip,deflate
  KEEP-ALIVE: 115
127.0.0.1 - - [29/Jun/2010:12:51:14] "GET /openerp/tree/open?model=ir.ui.menu&id=35 HTTP/1.1" 500 57889 "http://localhost:8080/openerp/menu?active=3" "Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3"

Thanks,

Renato Lima

description: updated
Changed in openobject-client-web:
status: New → Confirmed
assignee: nobody → sma (Open ERP) (sma-tiny)
Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello Renato Lima,

It is fixed in `lp:~openerp-dev/openobject-client-web/trunk-dev-web` branch.
Revision Number and ID:
3532 <email address hidden>

so the above branch will be merge with trunk web-client branch soon.

Thanks.

Changed in openobject-client-web:
status: Confirmed → Fix Committed
Revision history for this message
Renato Lima - http://www.akretion.com (renatonlima) wrote :

Hello Sma,

I'm using revision number 3628, but in others views with fields translated when has unicode caracter, I have the same problem, for example

Revision history for this message
Renato Lima - http://www.akretion.com (renatonlima) wrote :

I will set the bug status to Confirmed...

Tanks,

Renato Lima

Changed in openobject-client-web:
status: Fix Committed → Confirmed
Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello Renato Lima,

I have installed lang pt-BR and checked partners, project, sale view but not getting any error.
Can you please give me view where you are getting error.

Another thing, trunk-dev-web branch merged into trunk branch. So before testing update your Trunk branch.

Trunk branch: lp:openobject-client-web
Revision: 2966

Thanks.

Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello Renato Lima,

It's fixed in trunk web-client. Please update your code.

Revision Info:
3020 <email address hidden>

Thank you for the notification.

Changed in openobject-client-web:
status: Confirmed → Fix Released
milestone: none → 6.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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