mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-16 02:11:39 +00:00
step 0: install
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user