step 0: install

This commit is contained in:
Rushabh Mehta
2013-12-11 15:32:14 +05:30
parent e460aa277b
commit 39bb8e2ed4
18 changed files with 32 additions and 19 deletions

View File

@@ -2,7 +2,7 @@
# License: GNU General Public License v3. See license.txt
from home import update_feed
from core.doctype.notification_count.notification_count import clear_doctype_notifications
from webnotes.core.doctype.notification_count.notification_count import clear_doctype_notifications
from stock.doctype.material_request.material_request import update_completed_qty
def on_method(bean, method):

View File

@@ -41,7 +41,7 @@ def get_things_todo():
def get_todays_events():
"""Returns a count of todays events in calendar"""
from core.doctype.event.event import get_events
from webnotes.core.doctype.event.event import get_events
from webnotes.utils import nowdate
today = nowdate()
return len(get_events(today, today))

View File

@@ -27,11 +27,11 @@ def execute_all():
def execute_daily():
# event reminders
from core.doctype.event.event import send_event_digest
from webnotes.core.doctype.event.event import send_event_digest
run_fn(send_event_digest)
# clear daily event notifications
from core.doctype.notification_count.notification_count import delete_notification_count_for
from webnotes.core.doctype.notification_count.notification_count import delete_notification_count_for
delete_notification_count_for("Event")
# email digest