From 053ad462804ca4566e57b04220ab1dc8a10fce1e Mon Sep 17 00:00:00 2001 From: Raffael Meyer <14891507+barredterra@users.noreply.github.com> Date: Thu, 18 Jul 2024 20:12:18 +0200 Subject: [PATCH] fix: skip redundant fields in fixture export (#27048) --- frappe/core/doctype/data_import/data_import.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frappe/core/doctype/data_import/data_import.py b/frappe/core/doctype/data_import/data_import.py index b2de0badc993..0af57c2dd26b 100644 --- a/frappe/core/doctype/data_import/data_import.py +++ b/frappe/core/doctype/data_import/data_import.py @@ -296,7 +296,16 @@ def post_process(out): for v in doc.values(): if isinstance(v, list): for child in v: - for key in (*del_keys, "docstatus", "doctype", "modified", "name"): + for key in ( + *del_keys, + "docstatus", + "doctype", + "modified", + "name", + "parent", + "parentfield", + "parenttype", + ): if key in child: del child[key]