fix: ignore virtual doctypes during data export (#20891)
This commit is contained in:
parent
8759a7b41c
commit
01a0a0fc0a
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ import frappe
|
|||
import frappe.permissions
|
||||
from frappe import _
|
||||
from frappe.core.doctype.access_log.access_log import make_access_log
|
||||
from frappe.model.utils import is_virtual_doctype
|
||||
from frappe.utils import cint, cstr, format_datetime, format_duration, formatdate, parse_json
|
||||
from frappe.utils.csvutils import UnicodeWriter
|
||||
|
||||
|
|
@ -390,6 +391,8 @@ class DataExporter:
|
|||
if self.all_doctypes:
|
||||
# add child tables
|
||||
for c in self.child_doctypes:
|
||||
if is_virtual_doctype(c["doctype"]):
|
||||
continue
|
||||
child_doctype_table = DocType(c["doctype"])
|
||||
data_row = (
|
||||
frappe.qb.from_(child_doctype_table)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue