setting list_views

This commit is contained in:
Rushabh Mehta
2013-01-29 17:53:29 +05:30
parent 6abb2e67e9
commit 08da1a0a3d
105 changed files with 575 additions and 1736 deletions

View File

@@ -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
},
{

View File

@@ -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'}}
],
});