mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 22:58:25 +00:00
[tests] update travis.yml to run ui-tests (#9748)
* [tests] update travis.yml to run ui-tests * [tests] update travis.yml to run ui-tests * [test] fix item_group.py * [test] fix item_group.py * [check] daily work summary fails? * [check] daily work summary fails? * [check] daily work summary fails? * [check] daily work summary fails? * [check] daily work summary fails? * [check] daily work summary fails? * [check] no scheduled jobs for tests * [check] daily work summary fails? * [check] daily work summary fails?
This commit is contained in:
@@ -136,7 +136,7 @@ def get_group_item_count(item_group):
|
||||
|
||||
def get_parent_item_groups(item_group_name):
|
||||
item_group = frappe.get_doc("Item Group", item_group_name)
|
||||
return [{"name": frappe._("Home"),"route":"/"}]+\
|
||||
return [{"name": frappe._("Home"), "route":"/"}]+\
|
||||
frappe.db.sql("""select name, route from `tabItem Group`
|
||||
where lft <= %s and rgt >= %s
|
||||
and show_in_website=1
|
||||
@@ -147,7 +147,6 @@ def invalidate_cache_for(doc, item_group=None):
|
||||
item_group = doc.name
|
||||
|
||||
for d in get_parent_item_groups(item_group):
|
||||
if frappe.db.exists("Item Group", d.get("name")):
|
||||
d = frappe.get_doc("Item Group", d.get("name"))
|
||||
if d.route:
|
||||
clear_cache(d.route)
|
||||
item_group_name = frappe.db.get_value("Item Group", d.get('name'))
|
||||
if item_group_name:
|
||||
clear_cache(frappe.db.get_value('Item Group', item_group_name, 'route'))
|
||||
|
||||
Reference in New Issue
Block a user