Script zum Anlegen von Feldern aktualisiert

2026-06-08 17:52:07 +02:00
parent 5e15c0e814
commit 4c6c3a036b
+2 -2
@@ -1,4 +1,4 @@
`import frappe ` import frappe
fields = [ fields = [
{"label": "Berchmans Status", "fieldname": "custom_berchmans_status", "fieldtype": "Select", "options": "publish\ndraft\nprivate", "default": "publish"}, {"label": "Berchmans Status", "fieldname": "custom_berchmans_status", "fieldtype": "Select", "options": "publish\ndraft\nprivate", "default": "publish"},
@@ -41,4 +41,4 @@ for field in fields:
print("Fehler bei " + field["label"] + ": " + str(e)) print("Fehler bei " + field["label"] + ": " + str(e))
frappe.db.commit() frappe.db.commit()
print("\n=== Alle Felder verarbeitet ===")` print("\n=== Alle Felder verarbeitet ===") `