Script zum Anlegen von Feldern aktualisiert
@@ -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 ===")
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user