+ style="{% if (item_image) { %} background-image: {%= item_image %} {% } %}">
{%= item_code %}
diff --git a/erpnext/stock/doctype/item/item.json b/erpnext/stock/doctype/item/item.json
index 2fdb8e62fe..e12c764e77 100644
--- a/erpnext/stock/doctype/item/item.json
+++ b/erpnext/stock/doctype/item/item.json
@@ -133,7 +133,7 @@
},
{
"fieldname": "image",
- "fieldtype": "Image",
+ "fieldtype": "Attach",
"label": "Image",
"options": "",
"permlevel": 0,
@@ -877,7 +877,7 @@
"icon": "icon-tag",
"idx": 1,
"max_attachments": 1,
- "modified": "2015-01-07 10:40:54.901356",
+ "modified": "2015-01-08 14:59:49.747106",
"modified_by": "Administrator",
"module": "Stock",
"name": "Item",
diff --git a/erpnext/stock/doctype/stock_entry/stock_entry_list.html b/erpnext/stock/doctype/stock_entry/stock_entry_list.html
deleted file mode 100644
index 92bf2fa7d1..0000000000
--- a/erpnext/stock/doctype/stock_entry/stock_entry_list.html
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- {%= list.get_avatar_and_id(doc) %}
-
-
-
- {% if(doc.from_warehouse) { %}
-
- {%= doc.from_warehouse %}
-
- {% } %}
- {% if(doc.from_warehouse || doc.to_warehouse) { %}
-
- {% } %}
- {% if(doc.to_warehouse) { %}
-
- {%= doc.to_warehouse %}
-
- {% } %}
-
-
diff --git a/erpnext/stock/doctype/stock_entry/stock_entry_list.js b/erpnext/stock/doctype/stock_entry/stock_entry_list.js
index 9475ce09b0..7f1a7515f0 100644
--- a/erpnext/stock/doctype/stock_entry/stock_entry_list.js
+++ b/erpnext/stock/doctype/stock_entry/stock_entry_list.js
@@ -1,4 +1,21 @@
frappe.listview_settings['Stock Entry'] = {
add_fields: ["`tabStock Entry`.`from_warehouse`", "`tabStock Entry`.`to_warehouse`",
- "`tabStock Entry`.`purpose`", "`tabStock Entry`.`production_order`", "`tabStock Entry`.`bom_no`"]
+ "`tabStock Entry`.`purpose`", "`tabStock Entry`.`production_order`", "`tabStock Entry`.`bom_no`"],
+ column_render: {
+ "from_warehouse": function(doc) {
+ var html = "";
+ if(doc.from_warehouse) {
+ html += '
'+doc.from_warehouse+' ';
+ }
+ if(doc.from_warehouse || doc.to_warehouse) {
+ html += '
';
+ }
+ if(doc.to_warehouse) {
+ html += '
'+doc.to_warehouse+'';
+ }
+ return html;
+ }
+ }
};
diff --git a/erpnext/support/doctype/maintenance_visit/maintenance_visit.json b/erpnext/support/doctype/maintenance_visit/maintenance_visit.json
index 6066a960f9..6934c29948 100644
--- a/erpnext/support/doctype/maintenance_visit/maintenance_visit.json
+++ b/erpnext/support/doctype/maintenance_visit/maintenance_visit.json
@@ -35,7 +35,7 @@
"fieldname": "customer_name",
"fieldtype": "Data",
"hidden": 1,
- "in_list_view": 1,
+ "in_list_view": 0,
"label": "Customer Name",
"permlevel": 0,
"read_only": 1
@@ -279,7 +279,7 @@
"icon": "icon-file-text",
"idx": 1,
"is_submittable": 1,
- "modified": "2015-01-01 14:30:02.998219",
+ "modified": "2015-01-08 14:02:17.403671",
"modified_by": "Administrator",
"module": "Support",
"name": "Maintenance Visit",
@@ -303,5 +303,6 @@
],
"search_fields": "status,maintenance_type,customer,customer_name,mntc_date,company,fiscal_year",
"sort_field": "modified",
- "sort_order": "DESC"
+ "sort_order": "DESC",
+ "title_field": "customer_name"
}
\ No newline at end of file
diff --git a/erpnext/support/doctype/maintenance_visit/maintenance_visit_list.html b/erpnext/support/doctype/maintenance_visit/maintenance_visit_list.html
deleted file mode 100644
index 2ddef7a974..0000000000
--- a/erpnext/support/doctype/maintenance_visit/maintenance_visit_list.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
- {%= list.get_avatar_and_id(doc) %}
-
-
-
- {%= doc.customer_name %}
-
-
- {% var style = {
- "Scheduled": "default",
- "Unscheduled": "default",
- "Breakdown": "danger"
- }[doc.maintenance_type] %}
-
- {%= doc.maintenance_type %}
-
- {% var style = doc.completion_status==="Partially Completed" ? "warning" : "success" %}
-
- {%= doc.completion_status %}
-
-
-
-
-
- {% var completed = doc.completed, title = __("Completed") %}
- {% include "templates/form_grid/includes/progress.html" %}
-
-
diff --git a/erpnext/support/doctype/maintenance_visit/maintenance_visit_list.js b/erpnext/support/doctype/maintenance_visit/maintenance_visit_list.js
index 77f28d7ab3..e98979deb1 100644
--- a/erpnext/support/doctype/maintenance_visit/maintenance_visit_list.js
+++ b/erpnext/support/doctype/maintenance_visit/maintenance_visit_list.js
@@ -1,3 +1,11 @@
frappe.listview_settings['Maintenance Visit'] = {
add_fields: ["customer", "customer_name", "completion_status", "maintenance_type"],
+ get_indicator: function(doc) {
+ var s = doc.completion_status || "Pending";
+ return [__(s), {
+ "Pending": "blue",
+ "Partially Completed": "orange",
+ "Fully Completed": "green"
+ }[s], "completion_status,=," + doc.completion_status];
+ }
};
diff --git a/erpnext/support/doctype/newsletter/newsletter.json b/erpnext/support/doctype/newsletter/newsletter.json
index a30dc418b6..007f20f666 100644
--- a/erpnext/support/doctype/newsletter/newsletter.json
+++ b/erpnext/support/doctype/newsletter/newsletter.json
@@ -81,7 +81,7 @@
{
"fieldname": "subject",
"fieldtype": "Small Text",
- "in_list_view": 1,
+ "in_list_view": 0,
"label": "Subject",
"permlevel": 0,
"reqd": 1
@@ -123,7 +123,7 @@
{
"fieldname": "email_sent",
"fieldtype": "Check",
- "in_list_view": 1,
+ "in_list_view": 0,
"label": "Email Sent?",
"no_copy": 1,
"permlevel": 0,
@@ -132,7 +132,7 @@
],
"icon": "icon-envelope",
"idx": 1,
- "modified": "2014-08-04 07:22:06.445634",
+ "modified": "2015-01-08 10:45:54.106948",
"modified_by": "Administrator",
"module": "Support",
"name": "Newsletter",
diff --git a/erpnext/support/doctype/newsletter/newsletter_list.html b/erpnext/support/doctype/newsletter/newsletter_list.html
deleted file mode 100644
index d9352c71d6..0000000000
--- a/erpnext/support/doctype/newsletter/newsletter_list.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
- {%= list.get_avatar_and_id(doc) %}
-
-
-
- {% if (!doc.email_sent) { %}
-
- {%= __("Not Sent") %}
-
- {% } %}
-
-
diff --git a/erpnext/support/doctype/newsletter/newsletter_list.js b/erpnext/support/doctype/newsletter/newsletter_list.js
index 096b83e4e9..af64ad9201 100644
--- a/erpnext/support/doctype/newsletter/newsletter_list.js
+++ b/erpnext/support/doctype/newsletter/newsletter_list.js
@@ -1,3 +1,10 @@
frappe.listview_settings['Newsletter'] = {
- add_fields: ["subject", "send_to_type", "email_sent"]
+ add_fields: ["subject", "send_to_type", "email_sent"],
+ get_indicator: function(doc) {
+ if(doc.email_sent) {
+ return [__("Sent"), "green", "email_sent,=,Yes"];
+ } else {
+ return [__("Not Sent"), "orange", "email_sent,=,No"];
+ }
+ }
};