Merge pull request #25507 from AfshanKhan/fix-cancel-loan

fix: allow to cancel loan with cancelled repayment entry
This commit is contained in:
Deepesh Garg 2021-04-29 12:31:52 +05:30 committed by GitHub
commit 3386d4948e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ class Loan(AccountsController):
def on_cancel(self): def on_cancel(self):
self.unlink_loan_security_pledge() self.unlink_loan_security_pledge()
self.ignore_linked_doctypes = ['GL Entry']
def set_missing_fields(self): def set_missing_fields(self):
if not self.company: if not self.company: