fix: refactored comments API. Depends on https://github.com/frappe/frappe/pull/6891

This commit is contained in:
Rushabh Mehta
2019-02-09 21:10:29 +05:30
parent 665ee4ac33
commit c8018bdeb1
2 changed files with 4 additions and 8 deletions

View File

@@ -5,7 +5,6 @@ from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import cstr, getdate
from frappe.core.doctype.communication.comment import add_info_comment
def set_default_settings(args):
# enable default currency
@@ -114,9 +113,7 @@ def create_territories():
def create_feed_and_todo():
"""update Activity feed and create todo for creation of item, customer, vendor"""
add_info_comment(**{
"subject": _("ERPNext Setup Complete!")
})
return
def get_fy_details(fy_start_date, fy_end_date):
start_year = getdate(fy_start_date).year