[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.
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user