Added patch to fetch Item Template Attributes

This commit is contained in:
Neil Trini Lasrado
2015-08-06 13:35:12 +05:30
parent ebf4cbeae3
commit b9b49632f2
3 changed files with 18 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ frappe.listview_settings['Item'] = {
if(doc.end_of_life && doc.end_of_life < frappe.datetime.get_today()) {
return [__("Expired"), "grey", "end_of_life,<,Today"]
} else if(doc.has_variants) {
return [__("Template"), "blue", "has_variant,=,1"]
return [__("Template"), "blue", "has_variants,=,Yes"]
} else if(doc.variant_of) {
return [__("Variant"), "green", "variant_of,=," + doc.variant_of]
} else {