fixed for travis
This commit is contained in:
parent
36881807ed
commit
151125e537
@ -5,6 +5,7 @@ from __future__ import unicode_literals
|
||||
import frappe, os, json
|
||||
|
||||
def import_charts():
|
||||
print "Importing Chart of Accounts"
|
||||
frappe.db.sql("""delete from `tabChart of Accounts`""")
|
||||
charts_dir = os.path.join(os.path.dirname(__file__), "charts")
|
||||
for fname in os.listdir(charts_dir):
|
||||
@ -19,8 +20,8 @@ def import_charts():
|
||||
"source_file": fname,
|
||||
"country": country
|
||||
}).insert()
|
||||
print doc.name.encode("utf-8")
|
||||
else:
|
||||
print "No chart for: " + chart.get("name").encode("utf-8")
|
||||
|
||||
frappe.db.commit()
|
||||
#print doc.name.encode("utf-8")
|
||||
#else:
|
||||
#print "No chart for: " + chart.get("name").encode("utf-8")
|
||||
|
||||
frappe.db.commit()
|
||||
|
@ -4,7 +4,7 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe.utils import cstr
|
||||
from erpnext.templates.generators.item_group import get_item_for_list_in_html
|
||||
from erpnext.setup.doctype.item_group.item_group import get_item_for_list_in_html
|
||||
|
||||
no_cache = 1
|
||||
no_sitemap = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user