Xavier ALT (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/6.0-opw-574491-xal into 
lp:openobject-client-web.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-574491-xal/+merge/104766

Hi,

This is a problem when changing "group by" and web v6.0 is launched with 
cherrypy >= 3.2.0.

Steps:
- Open Purchase / Reporting / Purchase Analysis
- Unfold the 1st leaf, subtree is displayed
- Uncheck button "Product" (under Group By)
- Unfold the 1st leaf

Current: Nothing is display, javascript error
Expect: Display the subtree

Regards,
Xavier
-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-574491-xal/+merge/104766
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-574491-xal.
=== modified file 'addons/openerp/controllers/search.py'
--- addons/openerp/controllers/search.py	2012-03-20 15:41:47 +0000
+++ addons/openerp/controllers/search.py	2012-05-04 15:50:22 +0000
@@ -30,6 +30,11 @@
 def cleanup_group_by(s):
     if s is None:
         return ''
+    if isinstance(s, unicode):
+        try:
+            s = str(s)
+        except Exception:
+            pass
     return s.replace('[','').replace(']','').replace('"','').replace("'",'')
 
 class Search(Form):

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to