Browse Source

ToDo Patch and List View

version-14
Rushabh Mehta 11 years ago
parent
commit
9b1d91b8d1
2 changed files with 19 additions and 0 deletions
  1. +15
    -0
      webnotes/core/doctype/todo/todo_list.js
  2. +4
    -0
      webnotes/patches/4_0/set_todo_checked_as_closed.py

+ 15
- 0
webnotes/core/doctype/todo/todo_list.js View File

@@ -0,0 +1,15 @@
wn.listview_settings['ToDo'] = {
onload: function(me) {
$(wn.container.page)
.find(".layout-main-section")
.css({
"background-color":"cornsilk",
"min-height": "400px"
})
if(user_roles.indexOf("System Manager")!==-1) {
wn.route_options = {
"owner": user
}
}
}
}

+ 4
- 0
webnotes/patches/4_0/set_todo_checked_as_closed.py View File

@@ -0,0 +1,4 @@
import webnotes

def execute():
webnotes.conn.sql("""update tabToDo set status = if(ifnull(checked,0)=0, 'Open', 'Closed')""")

Loading…
Cancel
Save