From b9e9197e5fe17cd0185c835a103c15586c5a8bfb Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 17 Apr 2012 12:59:18 +0530 Subject: [PATCH] fix in doclistview - check if _user_tags exists before rendering --- erpnext/accounts/doctype/sales_invoice/listview.js | 2 +- erpnext/selling/doctype/customer/listview.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/listview.js b/erpnext/accounts/doctype/sales_invoice/listview.js index f3548f0d4b..c8030ef993 100644 --- a/erpnext/accounts/doctype/sales_invoice/listview.js +++ b/erpnext/accounts/doctype/sales_invoice/listview.js @@ -1,7 +1,7 @@ // render wn.doclistviews['Sales Invoice'] = wn.views.ListView.extend({ init: function(d) { - this._super(d) + this._super(d); this.fields = this.fields.concat([ "`tabSales Invoice`.customer_name", "ifnull(`tabSales Invoice`.outstanding_amount,0) as outstanding_amount", diff --git a/erpnext/selling/doctype/customer/listview.js b/erpnext/selling/doctype/customer/listview.js index 3ac705aa49..8543293318 100644 --- a/erpnext/selling/doctype/customer/listview.js +++ b/erpnext/selling/doctype/customer/listview.js @@ -6,11 +6,13 @@ wn.doclistviews['Customer'] = wn.views.ListView.extend({ "`tabCustomer`.customer_name", "`tabCustomer`.territory", ]); + this.show_hide_check_column(); }, columns: [ + {width: '3%', content:'check'}, {width: '5%', content:'avatar'}, - {width: '53%', content:'name'}, + {width: '50%', content:'name'}, {width: '10%', content:'tags'}, {width: '20%', content:'territory', css: {'color': '#aaa'}}, {width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}