added warehouse user to retrict entry and also introduced query handlers
Merge branch 'master' of github.com:webnotes/erpnext