[FIX] base_import: eval_context ref

bzr revid: xmo@openerp.com-20121127164543-xizox8d20e93lx21
This commit is contained in:
Xavier Morel 2012-11-27 17:45:43 +01:00
parent 6a3b91e6d5
commit 06122bce12
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class ImportController(openerp.addons.web.http.Controller):
'file': file.read(),
'file_name': file.filename,
'file_type': file.content_type,
}, req.session.eval_context(req.context))
}, req.context)
return 'window.top.%s(%s)' % (
jsonp, simplejson.dumps({'result': written}))