From 9b868ca71e254f19875b966096bafc1ebf421a1c Mon Sep 17 00:00:00 2001 From: Tanshu Date: Fri, 7 Dec 2012 19:02:19 +0530 Subject: [PATCH] Error Ledger.can_delete() did not return reason if delete allowed. --- brewman/brewman/models/master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewman/brewman/models/master.py b/brewman/brewman/models/master.py index fee318c6..1af01ce0 100644 --- a/brewman/brewman/models/master.py +++ b/brewman/brewman/models/master.py @@ -212,7 +212,7 @@ class LedgerBase(Base): return False, 'Account has journal entries' if len(self.products) > 0: return False, 'Account has products' - return True + return True, '' @classmethod def get_code(cls, type):