fix(Data Import): allow Print Format (#31842)

This commit is contained in:
Raffael Meyer 2025-03-20 18:07:19 +01:00 committed by GitHub
parent deaf5e1049
commit 92dd79dfe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,13 +9,13 @@ import frappe
from frappe import _
from frappe.core.doctype.data_import.exporter import Exporter
from frappe.core.doctype.data_import.importer import Importer
from frappe.model import core_doctypes_list
from frappe.model import CORE_DOCTYPES
from frappe.model.document import Document
from frappe.modules.import_file import import_file_by_path
from frappe.utils.background_jobs import enqueue, is_job_enqueued
from frappe.utils.csvutils import validate_google_sheets_url
BLOCKED_DOCTYPES = set(core_doctypes_list) - {"User", "Role"}
BLOCKED_DOCTYPES = CORE_DOCTYPES - {"User", "Role", "Print Format"}
class DataImport(Document):