[FIX] Domain should be in list.
authorMohammed Shekha(Open ERP) <>
Tue, 7 Jun 2011 10:04:44 +0000 (15:34 +0530)
committernoz (OpenERP) <noz@tinyerp.com>
Tue, 7 Jun 2011 10:04:44 +0000 (15:34 +0530)
bzr revid: noz@tinyerp.com-20110607100444-u4ba95ts7tssy1j6

addons/share/web/controllers.py

index 1b57d96..a59dde6 100644 (file)
@@ -7,14 +7,15 @@ from openerp.utils import rpc
 import openerp.controllers
 import cherrypy
 
-
-
 class ShareWizardController(openerp.controllers.SecuredController):
     _cp_path = "/share"
 
     @expose()
     def index(self, domain, context, view_id, search_domain='[]', action_id=None):
         context = ast.literal_eval(context)
+        
+        if search_domain == 'None':
+            search_domain = '[]'
 
         if not action_id:
             # This should not be needed anymore, but just in case users are