[IMP] move manage_filters to viewmanager's debug menu
bzr revid: xmo@openerp.com-20120518140001-jbocagvn7weqlqq3
This commit is contained in:
@@ -665,17 +665,6 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea
|
||||
case 'add_to_dashboard':
|
||||
this.on_add_to_dashboard();
|
||||
break;
|
||||
case 'manage_filters':
|
||||
this.do_action({
|
||||
res_model: 'ir.filters',
|
||||
views: [[false, 'list'], [false, 'form']],
|
||||
type: 'ir.actions.act_window',
|
||||
context: {"search_default_user_id": this.session.uid,
|
||||
"search_default_model_id": this.dataset.model},
|
||||
target: "current",
|
||||
limit : 80
|
||||
});
|
||||
break;
|
||||
case '':
|
||||
this.do_clear();
|
||||
}
|
||||
|
||||
@@ -607,6 +607,17 @@ instance.web.ViewManagerAction = instance.web.ViewManager.extend({
|
||||
case 'edit':
|
||||
this.do_edit_resource($option.data('model'), $option.data('id'), { name : $option.text() });
|
||||
break;
|
||||
case 'manage_filters':
|
||||
this.do_action({
|
||||
res_model: 'ir.filters',
|
||||
views: [[false, 'list'], [false, 'form']],
|
||||
type: 'ir.actions.act_window',
|
||||
context: {
|
||||
search_default_my_filters: true,
|
||||
search_default_model_id: this.dataset.model
|
||||
}
|
||||
});
|
||||
break;
|
||||
default:
|
||||
if (val) {
|
||||
console.log("No debug handler for ", val);
|
||||
|
||||
@@ -453,6 +453,7 @@
|
||||
<option t-if="view_manager.active_view === 'form'" value="toggle_layout_outline">Toggle Form Layout Outline</option>
|
||||
<option value="fields">View Fields</option>
|
||||
<option value="fvg">Fields View Get</option>
|
||||
<option value="manage_filters">Manage Filters</option>
|
||||
<t t-if="view_manager.session.uid === 1">
|
||||
<option value="manage_views">Manage Views</option>
|
||||
<option value="edit" data-model="ir.ui.view" t-att-data-id="view.fields_view.view_id">Edit <t t-esc="_.str.capitalize(view.fields_view.type)"/>View</option>
|
||||
|
||||
Reference in New Issue
Block a user