Error Ledger.can_delete() did not return reason if delete allowed.
This commit is contained in:
parent
9c744cd6d4
commit
9b868ca71e
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user