Script zum Anlegen von Feldern aktualisiert

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