patch fix

This commit is contained in:
Nabin Hait
2015-05-27 16:14:00 +05:30
parent f52b5ac8af
commit 54a10cd2af
2 changed files with 5 additions and 25 deletions

View File

@@ -19,7 +19,7 @@ def create_receivable_payable_account():
receivable_payable_accounts = frappe._dict()
def _create_account(args):
if args["parent_account"]:
if args["parent_account"] and frappe.db.exists("Account", args["parent_account"]):
account_id = frappe.db.get_value("Account",
{"account_name": args["account_name"], "company": args["company"]})
if not account_id: