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

@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:13",
"docstatus": 0,
"modified": "2013-01-22 14:16:20",
"modified": "2013-01-29 17:52:06",
"modified_by": "Administrator",
"owner": "ashwini@webnotestech.com"
},
@@ -73,6 +73,7 @@
"doctype": "DocField",
"fieldname": "employee_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Employee Name",
"oldfieldname": "employee_name",
"oldfieldtype": "Data"
@@ -82,6 +83,7 @@
"fieldname": "status",
"fieldtype": "Select",
"in_filter": 1,
"in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
@@ -95,6 +97,7 @@
"fieldname": "leave_type",
"fieldtype": "Link",
"hidden": 1,
"in_list_view": 1,
"label": "Leave Type",
"oldfieldname": "leave_type",
"oldfieldtype": "Link",

View File

@@ -1,29 +0,0 @@
// render
wn.doclistviews['Attendance'] = wn.views.ListView.extend({
init: function(d) {
this._super(d)
this.fields = this.fields.concat([
"`tabAttendance`.att_date",
"`tabAttendance`.employee_name",
"`tabAttendance`.`status`",
]);
this.stats = this.stats.concat(['company']);
},
prepare_data: function(data) {
this._super(data);
data.att_date = wn.datetime.str_to_user(data.att_date);
},
columns: [
{width: '3%', content: 'check'},
{width: '3%', content:'docstatus'},
{width: '12%', content:'name'},
{width: '47%', content:'employee_name'},
{width: '13%', content:'status'},
{width: '10%', content:'tags'},
//{width: '23%', content:'supplier_type', css: {'color': '#aaa'}},
{width: '12%', content:'att_date', css: {'text-align': 'right', 'color':'#777'}}
]
});