diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-06-21 08:18:55 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-06-21 08:20:01 +0200 |
| commit | 6aa94a5eea97efb4e0ca351f9509e0e8fdb7908f (patch) | |
| tree | 8c6099f500f003b33b1bed958ac7b9aa704a5174 /addons/web | |
| parent | f92b1a2e962f7e8ba39f0892d24bc53c5a3e6667 (diff) | |
[FIX] web: remove "Edit Workflow"
Since all workflows have been removed, remove the menu to edit it, since
it generates a traceback and confuse users.
Diffstat (limited to 'addons/web')
| -rw-r--r-- | addons/web/static/src/js/widgets/debug_manager.js | 11 | ||||
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/addons/web/static/src/js/widgets/debug_manager.js b/addons/web/static/src/js/widgets/debug_manager.js index 1ae85c6f7d1..627c477c92e 100644 --- a/addons/web/static/src/js/widgets/debug_manager.js +++ b/addons/web/static/src/js/widgets/debug_manager.js @@ -250,17 +250,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() { var model = this._action.res_model; new Model("ir.translation") diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index e87a6702de4..e2ecd16f89d 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> |
