[IMP] mail: changed controller due to modification in the clear_action() method

bzr revid: nicolas.vanhoren@openerp.com-20121120155258-32chebnbcrz37tks
This commit is contained in:
niv-openerp 2012-11-20 16:52:58 +01:00
parent 6bc1e836a7
commit 3edac34949
1 changed files with 2 additions and 1 deletions

View File

@ -75,9 +75,10 @@ class EDI(openerpweb.Controller):
@openerpweb.jsonrequest
def import_edi_url(self, req, url):
context = req.session.eval_context(req.context)
result = req.session.proxy('edi').import_edi_url(req.session._db, req.session._uid, req.session._password, url)
if len(result) == 1:
return {"action": webmain.clean_action(req, result[0][2])}
return {"action": webmain.clean_action(req, result[0][2], context)}
return True
#