feat: ignore status fields in onboarding and onboarding steps
This commit is contained in:
parent
1732f5b4cf
commit
5c8a63f0bc
1 changed files with 4 additions and 4 deletions
|
|
@ -12,7 +12,9 @@ ignore_values = {
|
|||
"Report": ["disabled", "prepared_report"],
|
||||
"Print Format": ["disabled"],
|
||||
"Notification": ["enabled"],
|
||||
"Print Style": ["disabled"]
|
||||
"Print Style": ["disabled"],
|
||||
"Onboarding": ['is_complete'],
|
||||
"Onboarding Step": ['is_complete', 'is_skipped']
|
||||
}
|
||||
|
||||
def import_files(module, dt=None, dn=None, force=False, pre_process=None, reset_permissions=False):
|
||||
|
|
@ -92,8 +94,6 @@ def read_doc_from_file(path):
|
|||
|
||||
return doc
|
||||
|
||||
ignore_doctypes = [""]
|
||||
|
||||
def import_doc(docdict, force=False, data_import=False, pre_process=None,
|
||||
ignore_version=None, reset_permissions=False):
|
||||
frappe.flags.in_import = True
|
||||
|
|
@ -114,7 +114,7 @@ def import_doc(docdict, force=False, data_import=False, pre_process=None,
|
|||
ignore = []
|
||||
|
||||
if frappe.db.exists(doc.doctype, doc.name):
|
||||
# import pdb; pdb.set_trace()
|
||||
|
||||
old_doc = frappe.get_doc(doc.doctype, doc.name)
|
||||
|
||||
if doc.doctype in ignore_values:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue