fix in doclistview - check if _user_tags exists before rendering

This commit is contained in:
Anand Doshi 2012-04-17 12:59:18 +05:30
parent 04cfaa0e1e
commit b9e9197e5f
2 changed files with 4 additions and 2 deletions

View File

@ -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",

View File

@ -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'}}