use get_global_default instead of control panel
Merge branch 'master' of github.com:webnotes/erpnext