This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
ToDo Patch and List View
version-14
Rushabh Mehta
11 years ago
parent
553cf1a9ff
commit
9b1d91b8d1
2 changed files
with
19 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+15
-0
webnotes/core/doctype/todo/todo_list.js
+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')""")
Write
Preview
Loading…
Cancel
Save