[trunk] loop when switch from form to list view

Bug #631668 reported by Ruud Riem-Vis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Undecided
Unassigned

Bug Description

First add a new product category and save it. You will get a window showing the product category name and selected accounts.
Then select the list view. the "loading" page will remain forever.

If you first select "new" to create a new product category and them switch to list view, you get the following error :

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 435, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 135, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 125, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1707, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1369, in __view_look_dom_arch
    fields_def = self.__view_look_dom(cr, user, node, view_id, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1356, 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

Web client version 3072

affects: openobject-client-web → openobject-server
Changed in openobject-server:
status: New → Confirmed
Revision history for this message
Jiten (OpenERP) (jiten-openerp) wrote :

Hello,

It has been fixed. Please update your code.
Current revision number is 3207.

Thanks.

Revision history for this message
Navrang Oza (noz-tiny) wrote :

For web client its working fine.

Revision history for this message
Ruud Riem-Vis (ruud-riem-vis) wrote : Re: [Bug 631668] Re: [trunk] loop when switch from form to list view

  On 07.09.2010 07:17, noz (Open ERP) wrote:
> *** This bug is a duplicate of bug 613721 ***
> https://bugs.launchpad.net/bugs/613721
>
> For web client its working fine.
>
Not at my place.

Configuration (all trunk)
Web_client : 3207
server : 2703
addons : 4877
extra_addons : 4953

OS: Ubuntu 10.04 LTS

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.