diff options
| author | Romain Derie <rde@odoo.com> | 2019-10-08 09:47:26 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-10 08:56:22 +0000 |
| commit | 9bbf57f915784f97c74531bd8d3bc255319ed235 (patch) | |
| tree | 252fc8950395b9b672cecc730845a8be4efe289c /addons/web/controllers | |
| parent | bdb08d0bcc759ab7f31070392c45e29a8b9fe935 (diff) | |
[REM] web: remove unused controller /apps/<app>
This controller never really worked in the last 3 versions.
It was fixed in 11.3 with e9350993ca0 but broken with refactoring in 12.0 at a
higher level with 19eacf7d23c9.
It was even worse in 13.0 as it was leading to a traceback: `view_type` field
got removed with 3cd7ed07a29c8 but this controller was still reading that
field.
closes odoo/odoo#38355
X-original-commit: a5c4e262449fef03d05d5250e4523832db5fbf00
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/web/controllers')
| -rw-r--r-- | addons/web/controllers/main.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 41725cecdba..7d9f79dcbb9 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -1839,28 +1839,6 @@ class ExcelExport(ExportFormat, http.Controller): return xlsx_writer.value -class Apps(http.Controller): - @http.route('/apps/<app>', auth='user') - def get_app_url(self, req, app): - try: - record = request.env.ref('base.open_module_tree') - action = record.read(['name', 'type', 'res_model', 'view_mode', 'view_type', 'context', 'views', 'domain'])[0] - action['target'] = 'current' - except ValueError: - action = False - try: - app_id = request.env.ref('base.module_%s' % app).id - except ValueError: - app_id = False - - if action and app_id: - action['res_id'] = app_id - action['view_mode'] = 'form' - action['views'] = [(False, u'form')] - - sakey = Session().save_session_action(action) - return werkzeug.utils.redirect('/web#sa={0}'.format(sakey)) - class ReportController(http.Controller): |
