diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-04-04 10:22:09 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 0ef53d742c3a059627e1ced6299b7ea4b83aa62e (patch) | |
| tree | c47b8774f6997391e2e04cfa65c5edb36887d569 /addons/web/static/src | |
| parent | eed432519eaba5aabe700cea83f0ef2f130c370e (diff) | |
[FIX] web: fix two small crashes in debug manager
- remove edit workflow link in debug manager. The workflow feature was
removed, but there was still a link in the debug manager. Clicking on
that link was a crash.
- the rpc to fetch a view was wrongly updated, so the return value was
not properly used.
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/widgets/debug_manager.js | 14 | ||||
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 1 |
2 files changed, 2 insertions, 13 deletions
diff --git a/addons/web/static/src/js/widgets/debug_manager.js b/addons/web/static/src/js/widgets/debug_manager.js index fba49f71ade..3796fcbda7f 100644 --- a/addons/web/static/src/js/widgets/debug_manager.js +++ b/addons/web/static/src/js/widgets/debug_manager.js @@ -176,7 +176,8 @@ var DebugManager = Widget.extend({ fields: ['name', 'model', 'type'], limit: 1, }) - .then(function (view) { + .then(function (views) { + var view = views[0]; self.do_action({ type: 'ir.actions.act_window', name: view.name, @@ -262,17 +263,6 @@ DebugManager.include({ } }); }, - edit_workflow: function () { - return this.do_action({ - res_model: 'workflow', - name: _t('Edit Workflow'), - domain: [['osv', '=', this._action.res_model]], - views: [[false, 'list'], [false, 'form'], [false, 'diagram']], - type: 'ir.actions.act_window', - view_type: 'list', - view_mode: 'list' - }); - }, translate: function() { this._rpc({ model: 'ir.translation', diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index c92db7a1872..e6e8c9a4d17 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -128,7 +128,6 @@ <t t-if="action.res_model"> <li><a href="#" data-action="get_view_fields">View Fields</a></li> <li><a href="#" data-action="manage_filters">Manage Filters</a></li> - <li t-if="manager._is_admin"><a href="#" data-action="edit_workflow">Edit Workflow</a></li> <li><a href="#" data-action="translate">Technical Translation</a></li> </t> </t> |
