mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 07:32:50 +00:00
[fix] [minor] use wn.defaults.get_default instead of sys_defaults
This commit is contained in:
@@ -80,7 +80,7 @@ pscript['onload_Accounts Browser'] = function(wrapper){
|
||||
$.each(r.message, function(i, v) {
|
||||
$('<option>').html(v).attr('value', v).appendTo(wrapper.$company_select);
|
||||
});
|
||||
wrapper.$company_select.val(sys_defaults.company || r[0]).change();
|
||||
wrapper.$company_select.val(wn.defaults.get_default("company") || r[0]).change();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user