mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix in doclistview - check if _user_tags exists before rendering
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// render
|
// render
|
||||||
wn.doclistviews['Sales Invoice'] = wn.views.ListView.extend({
|
wn.doclistviews['Sales Invoice'] = wn.views.ListView.extend({
|
||||||
init: function(d) {
|
init: function(d) {
|
||||||
this._super(d)
|
this._super(d);
|
||||||
this.fields = this.fields.concat([
|
this.fields = this.fields.concat([
|
||||||
"`tabSales Invoice`.customer_name",
|
"`tabSales Invoice`.customer_name",
|
||||||
"ifnull(`tabSales Invoice`.outstanding_amount,0) as outstanding_amount",
|
"ifnull(`tabSales Invoice`.outstanding_amount,0) as outstanding_amount",
|
||||||
|
|||||||
@@ -6,11 +6,13 @@ wn.doclistviews['Customer'] = wn.views.ListView.extend({
|
|||||||
"`tabCustomer`.customer_name",
|
"`tabCustomer`.customer_name",
|
||||||
"`tabCustomer`.territory",
|
"`tabCustomer`.territory",
|
||||||
]);
|
]);
|
||||||
|
this.show_hide_check_column();
|
||||||
},
|
},
|
||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
|
{width: '3%', content:'check'},
|
||||||
{width: '5%', content:'avatar'},
|
{width: '5%', content:'avatar'},
|
||||||
{width: '53%', content:'name'},
|
{width: '50%', content:'name'},
|
||||||
{width: '10%', content:'tags'},
|
{width: '10%', content:'tags'},
|
||||||
{width: '20%', content:'territory', css: {'color': '#aaa'}},
|
{width: '20%', content:'territory', css: {'color': '#aaa'}},
|
||||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||||
|
|||||||
Reference in New Issue
Block a user