Pārlūkot izejas kodu

[fix] check dynamic links before cancel

version-14
Rushabh Mehta pirms 10 gadiem
vecāks
revīzija
0e2f85357f
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      frappe/model/document.py

+ 2
- 1
frappe/model/document.py Parādīt failu

@@ -578,9 +578,10 @@ class Document(BaseDocument):

def check_no_back_links_exist(self):
"""Check if document links to any active document before Cancel."""
from frappe.model.delete_doc import check_if_doc_is_linked
from frappe.model.delete_doc import check_if_doc_is_linked, check_if_doc_is_dynamically_linked
if not self.flags.ignore_links:
check_if_doc_is_linked(self, method="Cancel")
check_if_doc_is_dynamically_linked(self)

@staticmethod
def whitelist(f):


Notiek ielāde…
Atcelt
Saglabāt