mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
setting list_views
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
[
|
||||
{
|
||||
"creation": "2013-01-10 16:34:18",
|
||||
"creation": "2013-01-23 19:57:18",
|
||||
"docstatus": 0,
|
||||
"modified": "2013-01-23 17:11:21",
|
||||
"modified": "2013-01-29 16:28:03",
|
||||
"modified_by": "Administrator",
|
||||
"owner": "Administrator"
|
||||
},
|
||||
@@ -52,6 +52,7 @@
|
||||
"fieldtype": "Data",
|
||||
"hidden": 0,
|
||||
"in_filter": 1,
|
||||
"in_list_view": 1,
|
||||
"label": "Customer Name",
|
||||
"no_copy": 1,
|
||||
"oldfieldname": "customer_name",
|
||||
@@ -127,6 +128,7 @@
|
||||
"doctype": "DocField",
|
||||
"fieldname": "territory",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Territory",
|
||||
"oldfieldname": "territory",
|
||||
"oldfieldtype": "Link",
|
||||
@@ -277,7 +279,7 @@
|
||||
"label": "Credit Limit",
|
||||
"oldfieldname": "credit_limit",
|
||||
"oldfieldtype": "Currency",
|
||||
"options": "eval:erpnext.get_currency()",
|
||||
"options": "Company:company:default_currency",
|
||||
"permlevel": 2
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
// render
|
||||
wn.doclistviews['Customer'] = wn.views.ListView.extend({
|
||||
init: function(d) {
|
||||
this._super(d)
|
||||
this.fields = this.fields.concat([
|
||||
"`tabCustomer`.customer_name",
|
||||
"`tabCustomer`.territory",
|
||||
]);
|
||||
this.show_hide_check_column();
|
||||
},
|
||||
|
||||
prepare_data: function(data) {
|
||||
this._super(data);
|
||||
data.customer_name = repl("<a href=\"#!Form/Customer/%(name)s\">%(customer_name)s</a>",
|
||||
data);
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content:'check'},
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '50%', content:'customer_name'},
|
||||
{width: '10%', content:'tags'},
|
||||
{width: '20%', content:'territory',
|
||||
css: {'color': '#aaa'}},
|
||||
{width: '12%', content:'modified',
|
||||
css: {'text-align': 'right', 'color':'#777'}}
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user