mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 23:31:20 +00:00
Chart of account/cc link only for accounts user and account manager role in account home page
This commit is contained in:
@@ -19,4 +19,12 @@ pscript['onload_accounts-home'] = function(wrapper) {
|
|||||||
if(wn.control_panel.country!='India') {
|
if(wn.control_panel.country!='India') {
|
||||||
$('.india-specific').toggle(false);
|
$('.india-specific').toggle(false);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
if(wn.boot.profile.roles.indexOf('Accounts Manager')==-1 && wn.boot.profile.roles.indexOf('Accounts User')==-1) {
|
||||||
|
$('[href*="Accounts Browser"]').each(function() {
|
||||||
|
var txt = $(this).text();
|
||||||
|
$(this).parent().css('color', '#999').html(txt);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user