[MERGE] developper mode print workflow for nel
bzr revid: al@openerp.com-20120913192759-f1t3r9j58zwvba10
This commit is contained in:
commit
56429967c2
|
@ -837,6 +837,21 @@ instance.web.ViewManagerAction = instance.web.ViewManager.extend({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 'print_workflow':
|
||||||
|
if (current_view.get_selected_ids && current_view.get_selected_ids().length == 1) {
|
||||||
|
instance.web.blockUI();
|
||||||
|
var action = {
|
||||||
|
context: { active_ids: current_view.get_selected_ids() },
|
||||||
|
report_name: "workflow.instance.graph",
|
||||||
|
datas: {
|
||||||
|
model: this.dataset.model,
|
||||||
|
id: current_view.get_selected_ids()[0],
|
||||||
|
nested: true,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.session.get_file({ url: '/web/report', data: {action: JSON.stringify(action)}, complete: instance.web.unblockUI });
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (val) {
|
if (val) {
|
||||||
console.log("No debug handler for ", val);
|
console.log("No debug handler for ", val);
|
||||||
|
|
|
@ -487,6 +487,7 @@
|
||||||
<option t-if="view_manager.searchview" value="edit" data-model="ir.ui.view" t-att-data-id="view_manager.searchview.view_id">Edit SearchView</option>
|
<option t-if="view_manager.searchview" value="edit" data-model="ir.ui.view" t-att-data-id="view_manager.searchview.view_id">Edit SearchView</option>
|
||||||
<option t-if="view_manager.action" value="edit" t-att-data-model="view_manager.action.type" t-att-data-id="view_manager.action.id">Edit Action</option>
|
<option t-if="view_manager.action" value="edit" t-att-data-model="view_manager.action.type" t-att-data-id="view_manager.action.id">Edit Action</option>
|
||||||
<option value="edit_workflow">Edit Workflow</option>
|
<option value="edit_workflow">Edit Workflow</option>
|
||||||
|
<option value="print_workflow">Print Workflow</option>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
<t t-name="ViewManagerDebugViewLog">
|
<t t-name="ViewManagerDebugViewLog">
|
||||||
|
|
Loading…
Reference in New Issue