mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
more fixes to perms, floats and default enabled / disabled in search
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
cur_frm.cscript.refresh = function(doc) {
|
||||
cur_frm.set_intro("");
|
||||
if(!cur_frm.doc.enabled) {
|
||||
cur_frm.set_intro(wn._("This Currency is disabled. Enable to use in transactions"))
|
||||
}
|
||||
}
|
||||
19
setup/doctype/currency/currency_list.js
Normal file
19
setup/doctype/currency/currency_list.js
Normal file
@@ -0,0 +1,19 @@
|
||||
wn.doclistviews['Currency'] = wn.views.ListView.extend({
|
||||
init: function(d) {
|
||||
this._super(d)
|
||||
this.fields = this.fields.concat([
|
||||
"`tabCurrency`.enabled",
|
||||
]);
|
||||
this.stats = this.stats.concat(['enabled']);
|
||||
this.order_by = "`tabCurrency`.`enabled` desc, `tabCurrency`.modified desc";
|
||||
},
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content: 'avatar'},
|
||||
{width: '3%', content: "enabled"},
|
||||
{width: '70%', content: 'name'},
|
||||
{width: '20%', content:'modified',
|
||||
css: {'text-align': 'right', 'color': '#777'}},
|
||||
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user