Error Ledger.can_delete() did not return reason if delete allowed.
This commit is contained in:
1 parent
9c744cd6d4
commit
9b868ca71e
1 file changed
+1
-1
@@ -212,7 +212,7 @@ class LedgerBase(Base):
|
|||||||
return False, 'Account has journal entries'
|
return False, 'Account has journal entries'
|
||||||
if len(self.products) > 0:
|
if len(self.products) > 0:
|
||||||
return False, 'Account has products'
|
return False, 'Account has products'
|
||||||
return True
|
return True, ''
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_code(cls, type):
|
def get_code(cls, type):
|
||||||
|
|||||||
Reference in new issue
Block a user