summaryrefslogtreecommitdiff
path: root/addons/edi/controllers
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2011-11-05 01:44:38 +0100
committerOlivier Dony <odo@openerp.com>2011-11-05 01:44:38 +0100
commitbb3d2a59d5e134d606ea517f61ef0fa2bb68088a (patch)
tree3afd43b0fa18712fe9619e10c97f8a226c36c41d /addons/edi/controllers
parent2b94ba171873a6083a60beece10b06160ef33b0a (diff)
[IMP] edi: EDI import flow working, login if needed + redirection to imported document
bzr revid: odo@openerp.com-20111105004438-quq8ebshsiox5uxm
Diffstat (limited to 'addons/edi/controllers')
-rw-r--r--addons/edi/controllers/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/edi/controllers/main.py b/addons/edi/controllers/main.py
index 9558a27bd34..00787cdc374 100644
--- a/addons/edi/controllers/main.py
+++ b/addons/edi/controllers/main.py
@@ -77,6 +77,8 @@ class EDI(openerpweb.Controller):
@openerpweb.jsonrequest
def import_edi_url(self, req, url):
result = req.session.proxy('edi').import_edi_url(req.session._db, req.session._uid, req.session._password, url)
- return result
+ if len(result) == 1:
+ return {"action": web.controllers.main.clean_action(req, result[0][2])}
+ return True
#