diff --git a/erpnext/accounts/doctype/gl_entry/gl_entry.py b/erpnext/accounts/doctype/gl_entry/gl_entry.py index 3927b8e61d..d74b9dc7c8 100644 --- a/erpnext/accounts/doctype/gl_entry/gl_entry.py +++ b/erpnext/accounts/doctype/gl_entry/gl_entry.py @@ -11,6 +11,8 @@ from erpnext.accounts.utils import get_account_currency from erpnext.setup.doctype.company.company import get_company_currency from erpnext.exceptions import InvalidAccountCurrency, CustomerFrozen +exclude_from_linked_with = True + class GLEntry(Document): def validate(self): self.flags.ignore_submit_comment = True diff --git a/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py b/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py index 33fc6586a2..37d1ab1e73 100644 --- a/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py +++ b/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py @@ -12,6 +12,8 @@ from erpnext.controllers.item_variant import ItemTemplateCannotHaveStock class StockFreezeError(frappe.ValidationError): pass +exclude_from_linked_with = True + class StockLedgerEntry(Document): def validate(self): self.flags.ignore_submit_comment = True