Initialize fork and rebrand app to event_manager
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
events = frappe.get_all(
|
||||
"Pohodex Event Manager Event", filters={"payment_gateway": ("is", "set")}, fields=["name", "payment_gateway"]
|
||||
)
|
||||
|
||||
frappe.reload_doc("Events", "doctype", "buzz_event")
|
||||
frappe.reload_doc("Events", "doctype", "event_payment_gateway")
|
||||
|
||||
for event in events:
|
||||
doc = frappe.get_cached_doc("Pohodex Event Manager Event", event.name)
|
||||
doc.append(
|
||||
"payment_gateways",
|
||||
{
|
||||
"payment_gateway": event.payment_gateway,
|
||||
},
|
||||
)
|
||||
doc.save()
|
||||
Reference in New Issue
Block a user