From 863cb124260b8266610740b3d297a8b1eb7f7136 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 2 May 2016 13:48:19 +0530 Subject: [PATCH] minor fix --- erpnext/accounts/doctype/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py index 104bef73e9..a551d06174 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -87,7 +87,7 @@ class Account(Document): return existing_is_group = frappe.db.get_value("Account", self.name, "is_group") - if self.is_group != existing_is_group: + if cint(self.is_group) != cint(existing_is_group): if self.check_gle_exists(): throw(_("Account with existing transaction cannot be converted to ledger")) elif self.is_group: