delete button in doclistview
This commit is contained in:
parent
03a26f2ed2
commit
1aae261490
@ -18,11 +18,12 @@ wn.doclistviews['Journal Voucher'] = wn.views.ListView.extend({
|
||||
}
|
||||
},
|
||||
columns: [
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '12%', content:'name'},
|
||||
{width: '15%', content:'voucher_type'},
|
||||
{width: '38%', content:'tags+remark', css: {'color':'#222'}},
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content: 'avatar'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '12%', content: 'name'},
|
||||
{width: '15%', content: 'voucher_type'},
|
||||
{width: '32%', content: 'tags+remark', css: {'color':'#222'}},
|
||||
{
|
||||
width: '18%',
|
||||
content: function(parent, data) {
|
||||
@ -30,6 +31,6 @@ wn.doclistviews['Journal Voucher'] = wn.views.ListView.extend({
|
||||
},
|
||||
css: {'text-align':'right'}
|
||||
},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
{width: '12%', content: 'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
],
|
||||
});
|
@ -20,10 +20,11 @@ wn.doclistviews['Purchase Invoice'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content: 'avatar'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '15%', content: 'name'},
|
||||
{width: '37%', content: 'tags+supplier_name', css: {color: '#222'}},
|
||||
{width: '34%', content: 'tags+supplier_name', css: {color: '#222'}},
|
||||
{
|
||||
width: '18%',
|
||||
content: function(parent, data) {
|
||||
|
@ -15,10 +15,11 @@ wn.doclistviews['Sales Invoice'] = wn.views.ListView.extend({
|
||||
data.paid = flt((data.grand_total - data.outstanding_amount) / data.grand_total * 100, 2);
|
||||
},
|
||||
columns: [
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '15%', content:'name'},
|
||||
{width: '37%', content:'tags+customer_name', css: {color:'#222'}},
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content: 'avatar'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '15%', content: 'name'},
|
||||
{width: '34%', content: 'tags+customer_name', css: {color:'#222'}},
|
||||
{
|
||||
width: '18%',
|
||||
content: function(parent, data) {
|
||||
|
@ -13,10 +13,11 @@ wn.doclistviews['Purchase Order'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '15%', content:'name'},
|
||||
{width: '35%', content:'tags+supplier_name', css: {color:'#222'}},
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content: 'avatar'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '15%', content: 'name'},
|
||||
{width: '28%', content: 'tags+supplier_name', css: {color:'#222'}},
|
||||
{
|
||||
width: '18%',
|
||||
content: function(parent, data) {
|
||||
|
@ -22,10 +22,11 @@ wn.doclistviews['Purchase Request'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '17%', content:'name'},
|
||||
{width: '53%', content:'status_html+tags+remark', css: {'color': '#222'}},
|
||||
{width: '50%', content:'status_html+tags+remark', css: {'color': '#222'}},
|
||||
{width: '10%', content: 'per_ordered', type:'bar-graph', label:'Ordered'},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
|
@ -14,11 +14,12 @@ wn.doclistviews['Supplier'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '20%', content:'name'},
|
||||
{width: '30%', content:'supplier_name'},
|
||||
{width: '10%', content:'tags'},
|
||||
{width: '23%', content:'supplier_type', css: {'color': '#aaa'}},
|
||||
{width: '20%', content:'supplier_type', css: {'color': '#aaa'}},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
});
|
||||
|
@ -20,9 +20,10 @@ wn.doclistviews['Appraisal'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '15%', content: 'name'},
|
||||
{width: '28%', content: 'employee_name'},
|
||||
{width: '25%', content: 'employee_name'},
|
||||
{width: '12%', content: 'status+tags'},
|
||||
{width: '12%', content: 'total_score', css: {'text-align': 'right'}},
|
||||
{width: '30%', content:'date_range',
|
||||
|
@ -17,9 +17,10 @@ wn.doclistviews['Attendance'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '12%', content:'name'},
|
||||
{width: '50%', content:'employee_name'},
|
||||
{width: '47%', content:'employee_name'},
|
||||
{width: '13%', content:'status'},
|
||||
{width: '10%', content:'tags'},
|
||||
//{width: '23%', content:'supplier_type', css: {'color': '#aaa'}},
|
||||
|
@ -35,10 +35,11 @@ wn.doclistviews['Employee'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '12%', content: 'name'},
|
||||
{width: '25%', content: 'employee_name'},
|
||||
{width: '48%', content: 'description+tags',
|
||||
{width: '45%', content: 'description+tags',
|
||||
css: {'color': '#aaa'}},
|
||||
{width: '12%', content:'date_of_joining',
|
||||
css: {'text-align': 'right', 'color': '#777'}},
|
||||
|
@ -22,10 +22,11 @@ wn.doclistviews['Expense Claim'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content: 'avatar'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '12%', content: 'name'},
|
||||
{width: '44%', content: 'employee_name+tags'},
|
||||
{width: '41%', content: 'employee_name+tags'},
|
||||
{width: '10%', content: 'approval_status'},
|
||||
{
|
||||
width: '12%',
|
||||
|
@ -25,10 +25,11 @@ wn.doclistviews['Leave Application'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '12%', content:'name'},
|
||||
{width: '40%', content:'employee_name+tags'},
|
||||
{width: '37%', content:'employee_name+tags'},
|
||||
{width: '10%', content:'total_leave_days',
|
||||
css: {'color':'#777'}},
|
||||
{width: '30%', content:'date_range'},
|
||||
|
@ -24,10 +24,11 @@ wn.doclistviews['Salary Slip'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '14%', content: 'name'},
|
||||
{width: '20%', content: 'employee_name'},
|
||||
{width: '30%', content: 'description+tags', css: {'color': '#aaa'}},
|
||||
{width: '27%', content: 'description+tags', css: {'color': '#aaa'}},
|
||||
{width: '17%', content:'month', css: {'text-align': 'right', 'color':'#aaa'}},
|
||||
{
|
||||
width: '16%',
|
||||
|
@ -21,10 +21,11 @@ wn.doclistviews['BOM'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '15%', content: 'name'},
|
||||
{width: '15%', content: 'item'},
|
||||
{width: '26%', content: 'description+tags'},
|
||||
{width: '23%', content: 'description+tags'},
|
||||
{
|
||||
width: '12%',
|
||||
content: function(parent, data) {
|
||||
|
@ -19,9 +19,10 @@ wn.doclistviews['Production Order'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content: 'avatar'},
|
||||
{width: '3%', content: 'docstatus'},
|
||||
{width: '20%', content: 'name'},
|
||||
{width: '17%', content: 'name'},
|
||||
{width: '16%', content: 'production_item'},
|
||||
{width: '20%', content: 'fg_warehouse'},
|
||||
{width: '12%', content: 'status+tags'},
|
||||
|
@ -24,9 +24,10 @@ wn.doclistviews['Lead'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '20%', content:'name'},
|
||||
{width: '12%', content:'status_html'},
|
||||
{width: '55%', content:'tags+lead_name', css: {color:'#222'}},
|
||||
{width: '52%', content:'tags+lead_name', css: {color:'#222'}},
|
||||
{width: '13%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
})
|
||||
|
@ -29,9 +29,10 @@ wn.doclistviews['Opportunity'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '15%', content:'name'},
|
||||
{width: '18%', content:'status_html'},
|
||||
{width: '55%', content:'tags+enquiry_name', css: {color:'#222'}},
|
||||
{width: '52%', content:'tags+enquiry_name', css: {color:'#222'}},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
})
|
||||
|
@ -22,10 +22,11 @@ wn.doclistviews['Quotation'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '15%', content:'name'},
|
||||
{width: '47%', content:'tags+quotation_name', css: {color:'#222'}},
|
||||
{width: '44%', content:'tags+quotation_name', css: {color:'#222'}},
|
||||
{
|
||||
width: '18%',
|
||||
content: function(parent, data) {
|
||||
|
@ -13,10 +13,11 @@ wn.doclistviews['Sales Order'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '15%', content:'name'},
|
||||
{width: '35%', content:'tags+customer_name', css: {color:'#222'}},
|
||||
{width: '32%', content:'tags+customer_name', css: {color:'#222'}},
|
||||
{
|
||||
width: '18%',
|
||||
content: function(parent, data) {
|
||||
|
@ -8,10 +8,11 @@ wn.doclistviews['Delivery Note'] = wn.views.ListView.extend({
|
||||
]);
|
||||
},
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '15%', content:'name'},
|
||||
{width: '50%', content:'tags+customer_name', css: {color:'#222'}},
|
||||
{width: '47%', content:'tags+customer_name', css: {color:'#222'}},
|
||||
{width: '15%', content:'sales_order_no', type:'link', doctype:'Sales Order'},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
|
@ -18,9 +18,10 @@ wn.doclistviews['Item'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '20%', content:'name'},
|
||||
{width: '63%', content:'tags+description', css: {'color': '#222'}},
|
||||
{width: '60%', content:'tags+description', css: {'color': '#222'}},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
});
|
||||
|
@ -8,10 +8,11 @@ wn.doclistviews['Purchase Receipt'] = wn.views.ListView.extend({
|
||||
]);
|
||||
},
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '15%', content:'name'},
|
||||
{width: '50%', content:'tags+supplier_name', css: {color:'#222'}},
|
||||
{width: '47%', content:'tags+supplier_name', css: {color:'#222'}},
|
||||
{width: '15%', content:'purchase_order_no', type:'link', doctype:'Purchase Order Order'},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
|
@ -9,10 +9,11 @@ wn.doclistviews['Stock Entry'] = wn.views.ListView.extend({
|
||||
]);
|
||||
},
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content:'avatar'},
|
||||
{width: '3%', content:'docstatus'},
|
||||
{width: '15%', content:'name'},
|
||||
{width: '18%', content:'tags+purpose', css: {color:'#222'}},
|
||||
{width: '15%', content:'tags+purpose', css: {color:'#222'}},
|
||||
{width: '18%', content:'from_warehouse', template: 'From %(from_warehouse)s'},
|
||||
{width: '18%', content:'to_warehouse', template: 'To %(to_warehouse)s'},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
|
@ -44,10 +44,11 @@ wn.doclistviews['Support Ticket'] = wn.views.ListView.extend({
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '3%', content:'check'},
|
||||
{width: '20%', content:'name'},
|
||||
{width: '10%', content:'status_html'},
|
||||
{width: '53%', content:'tags+description', css: {color:'#222'}},
|
||||
{width: '50%', content:'tags+description', css: {color:'#222'}},
|
||||
{width: '14%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
|
||||
|
@ -190,7 +190,7 @@ $.fn.done_working=function(){var ele=this.get(0);$(ele).attr('disabled',null);if
|
||||
/*
|
||||
* lib/js/wn/model.js
|
||||
*/
|
||||
wn.provide('wn.model');wn.model={no_value_type:['Section Break','Column Break','HTML','Table','Button','Image'],new_names:{},with_doctype:function(doctype,callback){if(locals.DocType[doctype]){callback();}else{wn.call({method:'webnotes.widgets.form.load.getdoctype',args:{doctype:doctype},callback:callback});}},with_doc:function(doctype,name,callback){if(!name)name=doctype;if(locals[doctype]&&locals[doctype][name]){callback(name);}else{wn.call({method:'webnotes.widgets.form.load.getdoc',args:{doctype:doctype,name:name},callback:function(r){callback(name,r);}});}},can_delete:function(doctype){if(!doctype)return false;return locals.DocType[doctype].allow_trash&&wn.boot.profile.can_cancel.indexOf(doctype)!=-1;}}
|
||||
wn.provide('wn.model');wn.model={no_value_type:['Section Break','Column Break','HTML','Table','Button','Image'],new_names:{},with_doctype:function(doctype,callback){if(locals.DocType[doctype]){callback();}else{wn.call({method:'webnotes.widgets.form.load.getdoctype',args:{doctype:doctype},callback:callback});}},with_doc:function(doctype,name,callback){if(!name)name=doctype;if(locals[doctype]&&locals[doctype][name]){callback(name);}else{wn.call({method:'webnotes.widgets.form.load.getdoc',args:{doctype:doctype,name:name},callback:function(r){callback(name,r);}});}},can_delete:function(doctype){if(!doctype)return false;return wn.boot.profile.can_cancel.indexOf(doctype)!=-1;}}
|
||||
/*
|
||||
* lib/js/wn/meta.js
|
||||
*/
|
||||
|
@ -77,7 +77,7 @@ $.fn.done_working=function(){var ele=this.get(0);$(ele).attr('disabled',null);if
|
||||
/*
|
||||
* lib/js/wn/model.js
|
||||
*/
|
||||
wn.provide('wn.model');wn.model={no_value_type:['Section Break','Column Break','HTML','Table','Button','Image'],new_names:{},with_doctype:function(doctype,callback){if(locals.DocType[doctype]){callback();}else{wn.call({method:'webnotes.widgets.form.load.getdoctype',args:{doctype:doctype},callback:callback});}},with_doc:function(doctype,name,callback){if(!name)name=doctype;if(locals[doctype]&&locals[doctype][name]){callback(name);}else{wn.call({method:'webnotes.widgets.form.load.getdoc',args:{doctype:doctype,name:name},callback:function(r){callback(name,r);}});}},can_delete:function(doctype){if(!doctype)return false;return locals.DocType[doctype].allow_trash&&wn.boot.profile.can_cancel.indexOf(doctype)!=-1;}}
|
||||
wn.provide('wn.model');wn.model={no_value_type:['Section Break','Column Break','HTML','Table','Button','Image'],new_names:{},with_doctype:function(doctype,callback){if(locals.DocType[doctype]){callback();}else{wn.call({method:'webnotes.widgets.form.load.getdoctype',args:{doctype:doctype},callback:callback});}},with_doc:function(doctype,name,callback){if(!name)name=doctype;if(locals[doctype]&&locals[doctype][name]){callback(name);}else{wn.call({method:'webnotes.widgets.form.load.getdoc',args:{doctype:doctype,name:name},callback:function(r){callback(name,r);}});}},can_delete:function(doctype){if(!doctype)return false;return wn.boot.profile.can_cancel.indexOf(doctype)!=-1;}}
|
||||
/*
|
||||
* lib/js/wn/meta.js
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user