[FIX] Accept http responses as server action response
authorFalcoBolger <vta@openerp.com>
Wed, 18 Jun 2014 11:39:30 +0000 (13:39 +0200)
committerFalcoBolger <vta@openerp.com>
Wed, 18 Jun 2014 11:39:30 +0000 (13:39 +0200)
addons/website/controllers/main.py

index ab6f6f0..5025e5d 100644 (file)
@@ -414,7 +414,7 @@ class Website(openerp.addons.web.controllers.main.Home):
             action = ServerActions.browse(cr, uid, action_id, context=context)
             if action.state == 'code' and action.website_published:
                 action_res = ServerActions.run(cr, uid, [action_id], context=context)
-                if isinstance(action_res, Response):
+                if isinstance(action_res, werkzeug.wrappers.Response):
                     res = action_res
         if res:
             return res