account_browser: remove can_create check

This commit is contained in:
Rushabh Mehta
2012-12-06 14:58:44 +05:30
parent 28bc87fb8c
commit 89c7b41fee
4 changed files with 42 additions and 41 deletions

View File

@@ -902,7 +902,7 @@ def assign_task_to_owner(inv, msg, users):
def get_bank_cash_account(mode_of_payment):
val = webnotes.conn.get_value("Mode of Payment", mode_of_payment, "default_account")
if not val:
webnotes.msgprint("Default Account not set in Mode of Payment: %s" % mode_of_payment)
webnotes.msgprint("Default Bank / Cash Account not set in Mode of Payment: %s. Please add a Default Account in Mode of Payment master." % mode_of_payment)
return {
"cash_bank_account": val
}