added report button in todo page

This commit is contained in:
Anand Doshi
2013-02-25 15:22:20 +05:30
parent bdf4bcc2ed
commit b60aef5595
4 changed files with 18 additions and 2 deletions

View File

@@ -193,6 +193,12 @@ wn.pages.todo.onload = function(wrapper) {
date:get_today(), priority:'Medium', checked:0, description:''});
}, 'icon-plus');
wrapper.appframe.add_ripped_paper_effect(wrapper);
// show report button for System Manager
if(wn.boot.profile.roles.indexOf("System Manager") !== -1) {
wrapper.appframe.add_button("Report", function() { wn.set_route("query-report", "todo"); },
"icon-table");
}
// load todos
erpnext.todo.refresh();