Skip to content

Commit

Permalink
fix: skip redundant fields in fixture export (frappe#27048)
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Jul 18, 2024
1 parent 53b054e commit 053ad46
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frappe/core/doctype/data_import/data_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 053ad46

Please sign in to comment.