projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d282f3
)
[FIX] Accept http responses as server action response
author
FalcoBolger
<vta@openerp.com>
Wed, 18 Jun 2014 11:39:30 +0000
(13:39 +0200)
committer
FalcoBolger
<vta@openerp.com>
Wed, 18 Jun 2014 11:39:30 +0000
(13:39 +0200)
addons/website/controllers/main.py
patch
|
blob
|
history
diff --git
a/addons/website/controllers/main.py
b/addons/website/controllers/main.py
index
ab6f6f0
..
5025e5d
100644
(file)
--- a/
addons/website/controllers/main.py
+++ b/
addons/website/controllers/main.py
@@
-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