From 7f94f41632263ad56583ec44c390adcb2c1b3109 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Fri, 12 Apr 2024 09:26:46 +0530 Subject: [PATCH] fix: Link Validation Error on Dunning cancellation --- erpnext/accounts/doctype/dunning/dunning.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/accounts/doctype/dunning/dunning.py b/erpnext/accounts/doctype/dunning/dunning.py index f7c4d90b4bd..260ede57c4e 100644 --- a/erpnext/accounts/doctype/dunning/dunning.py +++ b/erpnext/accounts/doctype/dunning/dunning.py @@ -146,6 +146,10 @@ class Dunning(AccountsController): ) row.dunning_level = len(past_dunnings) + 1 + def on_cancel(self): + super().on_cancel() + self.ignore_linked_doctypes = ["GL Entry"] + def resolve_dunning(doc, state): """ -- GitLab