Error Ledger.can_delete() did not return reason if delete allowed.

This commit is contained in:
Tanshu 2012-12-07 19:02:19 +05:30
parent 9c744cd6d4
commit 9b868ca71e
1 changed files with 1 additions and 1 deletions

View File

@ -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):